Skip to content

Commit

Permalink
Merge pull request #2 from mnyrop/main
Browse files Browse the repository at this point in the history
Fix prerendering, upgrade node-action
  • Loading branch information
mnyrop authored Mar 5, 2024
2 parents 89cd8a0 + 4a3519c commit 71d5ce9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gh-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
- name: checkout
uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '16.10.0'
node-version-file: '.nvmrc'
- name: install
run: npm install
- name: build
Expand Down
1 change: 1 addition & 0 deletions src/routes/+layout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const prerender = true;
2 changes: 0 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script>
export const prerender = true;
import { siteTitle, siteDescription } from '$lib/vars/constants.js';
import { timestamp } from '$lib/BuildTimeStamp.svelte';
import { base } from '$app/paths';
Expand Down
6 changes: 5 additions & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import adapter from '@sveltejs/adapter-static';
const config = {
kit: {
adapter: adapter({
fallback: '404.html'
pages: 'build',
assets: 'build',
fallback: '404.html',
precompress: false,
strict: true
}),
paths: {
base: '/viewpoint'
Expand Down

0 comments on commit 71d5ce9

Please sign in to comment.