Skip to content

Commit

Permalink
set base path
Browse files Browse the repository at this point in the history
  • Loading branch information
qimiko committed Mar 8, 2024
1 parent 11374e9 commit a33011b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy SvelteKit site to Pages

on:
push:
branches: ["main"]
branches: ['main']

workflow_dispatch:

Expand All @@ -12,7 +12,7 @@ permissions:
id-token: write

concurrency:
group: "pages"
group: 'pages'
cancel-in-progress: false

jobs:
Expand All @@ -24,15 +24,15 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: '20'
cache: npm
- name: Setup Pages
uses: actions/configure-pages@v4
with:
static_site_generator: sveltekit
- name: Install dependencies
run: npm ci
- name: Build with Next.js
- name: Build
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down
5 changes: 4 additions & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ const config = {
adapter: adapter({
fallback: '404.html',
strict: true
})
}),
paths: {
base: process.env.GITHUB_ACTIONS ? '/index-frontend' : ''
}
}
};

Expand Down

0 comments on commit a33011b

Please sign in to comment.