Skip to content

Commit

Permalink
fix: replace throw to a console.warn (sveltejs#10737)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan authored and Ivan committed Oct 4, 2023
1 parent 4d13ddd commit fdd61e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/kit/src/runtime/server/page/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export async function render_response({
}

if (Object.keys(public_env).length) {
throw new Error('Cannot use prerendering with runtime environment variables');
console.warn(
'Page is being prerendering with runtime environment variables. Please make sure if dynamic env is appropriate on this page.'
);
}
}

Expand Down

0 comments on commit fdd61e0

Please sign in to comment.