We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 442ae6a commit 777b6cbCopy full SHA for 777b6cb
1 file changed
vite.config.ts
@@ -61,7 +61,7 @@ export default defineConfig(async ({ command, mode, isPreview }) => {
61
const isProduction = mode === 'production' && (isTruthy(env.DOCKER) || isTruthy(env.CF_PAGES));
62
63
// If we are running locally, ensure that local.{PUBLIC_SITE_DOMAIN} resolves to localhost, and then use mkcert to generate a certificate
64
- const useLocalRedirect = isLocalServe && !isProduction && !isTruthy(env.CI);
+ const useLocalRedirect = isLocalServe && !isProduction && (isTruthy(env.CI) ? (isPreview ?? false) : true);
65
66
return defineConfig({
67
plugins: [...(useLocalRedirect ? [mkcert()] : []), sveltekit(), tailwindcss()],
0 commit comments