diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 89066a7..d908f64 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -20,7 +20,12 @@ on: type: choice options: - static - - github-pages + - vercel + - node + - docker + - netlify + - static + - auto permissions: contents: read @@ -54,7 +59,7 @@ jobs: env: BASE_URL: ${{ inputs.base_url }} DEPLOY_ENV: ${{ inputs.deploy_env }} - run: npm run build:static + run: npm run build - name: Upload build artifacts uses: actions/upload-pages-artifact@v3 diff --git a/src/app.html b/src/app.html index adf8bd8..6614203 100644 --- a/src/app.html +++ b/src/app.html @@ -3,6 +3,13 @@ + %sveltekit.head% diff --git a/static/404.html b/static/404.html index 6db1163..aa11d59 100644 --- a/static/404.html +++ b/static/404.html @@ -3,74 +3,27 @@ - 404 - Page Not Found | IP Calculator - + Redirecting... | IP Calculator + -
- - - -

404

-

Page not found. The application failed to load or the requested page doesn't exist.

- Return Home -
+

Redirecting...

\ No newline at end of file diff --git a/svelte.config.js b/svelte.config.js index 5b27e20..b95b290 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -32,7 +32,6 @@ function getAdapter() { case 'static': return adapterStatic({ strict: false, - fallback: 'index.html', }); case 'auto': return adapterAuto(); @@ -71,7 +70,7 @@ const config = { kit: { adapter: getAdapter(), paths: { - base: process.env.BASE_PATH || '', + base: process.env.BASE_URL || process.env.BASE_PATH || '', }, } };