diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
new file mode 100644
index 0000000..d7b0f4d
--- /dev/null
+++ b/.github/workflows/pages.yml
@@ -0,0 +1,44 @@
+name: Deploy to GitHub Pages
+
+on:
+ workflow_dispatch:
+ push:
+ branches:
+ - main
+ - feature/github-pages
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ container:
+ image: oven/bun:1 # Use Bun's official Docker image
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Install dependencies with Bun
+ working-directory: ./web
+ run: bun install
+
+ - name: Build with Nuxt
+ working-directory: ./web
+ run: bunx nuxt build --preset github_pages
+
+ - name: Upload artifact
+ uses: actions/upload-pages-artifact@v3
+ with:
+ path: ./web/.output/public
+
+ deploy:
+ needs: build
+ permissions:
+ pages: write
+ id-token: write
+ environment:
+ name: github_pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ runs-on: ubuntu-latest
+ steps:
+ - name: Deploy to GitHub Pages
+ id: deployment
+ uses: actions/deploy-pages@v4
+
diff --git a/web/nuxt.config.ts b/web/nuxt.config.ts
index 5932eec..221e451 100644
--- a/web/nuxt.config.ts
+++ b/web/nuxt.config.ts
@@ -1,6 +1,9 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
- compatibilityDate: '2024-11-01',
- devtools: { enabled: true },
- modules: ['@nuxt/eslint', '@nuxt/test-utils', '@nuxt/ui']
-})
\ No newline at end of file
+ compatibilityDate: '2024-11-01',
+ devtools: { enabled: true },
+ modules: ['@nuxt/eslint', '@nuxt/test-utils', '@nuxt/ui'],
+ app: {
+ baseURL: process.env.BASE_URL,
+ },
+})
diff --git a/web/pages/404.vue b/web/pages/404.vue
new file mode 100644
index 0000000..537eda6
--- /dev/null
+++ b/web/pages/404.vue
@@ -0,0 +1,12 @@
+
+
+
+
+ 404 not found
+
+
+
+
+
diff --git a/web/pages/index.vue b/web/pages/index.vue
new file mode 100644
index 0000000..af75d86
--- /dev/null
+++ b/web/pages/index.vue
@@ -0,0 +1,12 @@
+
+
+
+
+ indx
+
+
+
+
+