diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 8fabbf0..0000000 --- a/Dockerfile +++ /dev/null @@ -1,19 +0,0 @@ -FROM node:22-alpine as build-stage - -WORKDIR /app - -RUN corepack enable -COPY .npmrc package.json pnpm-lock.yaml ./ -RUN pnpm install --frozen-lockfile - -COPY . . -RUN pnpm build - -# SSR -FROM node:22-alpine as production-stage - -WORKDIR /app - -COPY --from=build-stage /app/.output ./.output - -CMD ["node", ".output/server/index.mjs"] diff --git a/nuxt.config.ts b/nuxt.config.ts index aae0762..616eeb3 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -18,31 +18,8 @@ export default defineNuxtConfig({ ssr: false, - experimental: { - // when using generate, payload js assets included in sw pre-cache manifest - // but missing on offline, disabling extraction it until fixed - payloadExtraction: false, - renderJsonPayloads: true, - typedPages: true, - }, - - css: [ - '@unocss/reset/tailwind.css', - ], - - colorMode: { - classSuffix: '', - }, - - nitro: { - esbuild: { - options: { - target: 'esnext', - }, - }, - experimental: { - websocket: true, - }, + devtools: { + enabled: true, }, app: { @@ -66,8 +43,12 @@ export default defineNuxtConfig({ }, }, - devtools: { - enabled: true, + css: [ + '@unocss/reset/tailwind.css', + ], + + colorMode: { + classSuffix: '', }, features: { @@ -75,6 +56,38 @@ export default defineNuxtConfig({ inlineStyles: false, }, + experimental: { + // when using generate, payload js assets included in sw pre-cache manifest + // but missing on offline, disabling extraction it until fixed + payloadExtraction: false, + renderJsonPayloads: true, + typedPages: true, + }, + + compatibilityDate: '2024-12-02', + + nitro: { + esbuild: { + options: { + target: 'esnext', + }, + }, + experimental: { + websocket: true, + }, + rollupConfig: { + + }, + routeRules: { + '/assets/js/CubismSdkForWeb-5-r.1/*': { + static: true, + }, + '/assets/live2d/models/*': { + static: true, + }, + }, + }, + vite: { plugins: [ { @@ -157,6 +170,4 @@ export default defineNuxtConfig({ }, }, }, - - compatibilityDate: '2024-12-02', })