diff --git a/node_modules/@remix-run/dev/dist/vite/plugin.js b/node_modules/@remix-run/dev/dist/vite/plugin.js index 70f9611..13188fb 100644 --- a/node_modules/@remix-run/dev/dist/vite/plugin.js +++ b/node_modules/@remix-run/dev/dist/vite/plugin.js @@ -511,7 +511,7 @@ const remixVitePlugin = (remixUserConfig = {}) => { "")); return { __remixPluginContext: ctx, - appType: "custom", + appType: (viteCommand === "serve" && viteConfigEnv.mode === "production" && ctx.remixConfig.unstable_ssr === false) ? "spa" : "custom", optimizeDeps: { include: [ // Pre-bundle React dependencies to avoid React duplicates, @@ -542,7 +542,7 @@ const remixVitePlugin = (remixUserConfig = {}) => { // see description for `@remix-run/react` in `optimizeDeps.include` "@remix-run/react"] }, - ...(viteCommand === "build" && { + ...(viteCommand === "build" ? { base: ctx.remixConfig.publicPath, build: { ...(!viteConfigEnv.isSsrBuild ? { @@ -574,7 +574,13 @@ const remixVitePlugin = (remixUserConfig = {}) => { } }) } - }) + } : (viteCommand === "serve" && ctx.remixConfig.unstable_ssr === false) ? { + base: ctx.remixConfig.publicPath, + build: { + manifest: true, + outDir: getClientBuildDirectory(ctx.remixConfig), + }, + } : undefined) }; }, async configResolved(resolvedViteConfig) {