Skip to content

Commit

Permalink
Deploy as a static site.
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanvugt committed Aug 27, 2023
1 parent f1b400f commit 712ae12
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 419 deletions.
410 changes: 5 additions & 405 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@neoconfetti/svelte": "^1.0.0",
"@playwright/test": "^1.28.1",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/adapter-netlify": "^2.0.8",
"@sveltejs/adapter-static": "^2.0.3",
"@sveltejs/kit": "^1.20.4",
"@tailwindcss/forms": "^0.5.4",
"@types/cookie": "^0.5.1",
Expand Down
1 change: 0 additions & 1 deletion src/lib/playback/stores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ const onEngineError = (message: string) => {
}

function createPlaybackState() {
console.debug('[playback] create store');
return {
controls,
subscribe: writableState.subscribe,
Expand Down
2 changes: 0 additions & 2 deletions src/routes/(iframed)/+page.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export const ssr = false;

import { initWindowMessages } from '$lib/playback/messages';
import { playbackState } from '$lib/playback/stores';
import { loadSettingsWithURLOverrides } from '$lib/settings/stores';
Expand Down
1 change: 0 additions & 1 deletion src/routes/(iframed)/settings/+page.ts

This file was deleted.

3 changes: 3 additions & 0 deletions src/routes/+layout.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// We're a strict SPA, disable SSR site-wide
export const prerender = true;
export const ssr = false;
1 change: 0 additions & 1 deletion src/routes/examples/iframes/+page.ts

This file was deleted.

15 changes: 7 additions & 8 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
// import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-netlify';
import adapter from '@sveltejs/adapter-static';

import { vitePreprocess } from '@sveltejs/kit/vite';

Expand All @@ -13,13 +13,12 @@ const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter({
// if true, will create a Netlify Edge Function rather
// than using standard Node-based functions
edge: false,
// if true, will split your app into multiple functions
// instead of creating a single one for the entire app.
// if `edge` is true, this option cannot be used
split: false
// These are the defaults, see https://kit.svelte.dev/docs/adapter-static
pages: 'build',
assets: 'build',
fallback: undefined,
precompress: false,
strict: true
})
}
};
Expand Down

0 comments on commit 712ae12

Please sign in to comment.