diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index a2d9d227..9ab8d3e5 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -40,6 +40,10 @@ jobs: run: npm test working-directory: frontend + - name: Build frontend + run: npm run build + working-directory: frontend + - name: Upload screenshots if: always() uses: actions/upload-artifact@v4 diff --git a/frontend/src/routes/hilfe/transkription/+page.ts b/frontend/src/routes/hilfe/transkription/+page.ts index f71b9f54..189f71e2 100644 --- a/frontend/src/routes/hilfe/transkription/+page.ts +++ b/frontend/src/routes/hilfe/transkription/+page.ts @@ -1,3 +1 @@ -// Safe: handleAuth in hooks.server.ts redirects unauthenticated requests -// before prerendered HTML is visible. export const prerender = true; diff --git a/frontend/svelte.config.js b/frontend/svelte.config.js index 03c17f28..ca42a340 100644 --- a/frontend/svelte.config.js +++ b/frontend/svelte.config.js @@ -6,7 +6,10 @@ const config = { // Consult https://svelte.dev/docs/kit/integrations // for more information about preprocessors preprocess: vitePreprocess(), - kit: { adapter: adapter() } + kit: { + adapter: adapter(), + prerender: { entries: ['/hilfe/transkription'] } + } }; export default config;