Skip to content

Commit 777b6cb

Browse files
committed
maybe fix
1 parent 442ae6a commit 777b6cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default defineConfig(async ({ command, mode, isPreview }) => {
6161
const isProduction = mode === 'production' && (isTruthy(env.DOCKER) || isTruthy(env.CF_PAGES));
6262

6363
// 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);
64+
const useLocalRedirect = isLocalServe && !isProduction && (isTruthy(env.CI) ? (isPreview ?? false) : true);
6565

6666
return defineConfig({
6767
plugins: [...(useLocalRedirect ? [mkcert()] : []), sveltekit(), tailwindcss()],

0 commit comments

Comments
 (0)