Skip to content

Commit

Permalink
remove BUILD_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Dec 14, 2024
1 parent 48196fe commit 4e9d5c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
- name: Build
run: bun run build
env:
BUILD_ENV: github
VITE_HOMEPAGE: https://idleberg.github.io/playdate-arcade-fonts

- name: Upload Artifacts
Expand Down
6 changes: 3 additions & 3 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ const config = {
};

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

case 'netlify':
case process.env.NETLIFY:
return netlify({
edge: true,
});
Expand Down
6 changes: 0 additions & 6 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ import valibot from 'vite-plugin-valibot-env';

const schema = v.object({
VITE_HOMEPAGE: v.pipe(v.string(), v.url()),
BUILD_ENV: v.optional(
v.union([
v.literal('github'),
v.literal('netlify'),
])
),
});

export default defineConfig(({ mode }) => {
Expand Down

0 comments on commit 4e9d5c7

Please sign in to comment.