Skip to content

Commit

Permalink
update getAdapter condition
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Dec 14, 2024
1 parent 915dafe commit 4a35853
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ const config = {

function getAdapter() {
switch(true) {
case process.env.GITHUB_WORKFLOW:
case Boolean(process.env.GITHUB_WORKFLOW):
return ghPages({
fallback: '404.html',
precompress: true,
});

case process.env.NETLIFY:
case Boolean(process.env.NETLIFY):
return netlify({
edge: true,
});
Expand Down

0 comments on commit 4a35853

Please sign in to comment.