Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"@devcard/shared": "workspace:*"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^7.0.0",
"@sveltejs/kit": "^2.50.2",
"@sveltejs/vite-plugin-svelte": "^6.2.4",
"svelte": "^5.51.0",
Expand Down
13 changes: 5 additions & 8 deletions apps/web/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-vercel';

/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
adapter: adapter(),
csp: {
mode: 'auto',
mode: 'hash',
directives: {
'default-src': ['self'],
'script-src': ['self', 'unsafe-inline'],
'script-src': ['self'],
'style-src': ['self', 'unsafe-inline', 'https://fonts.googleapis.com'],
'img-src': ['self', 'data:', 'https:'],
'connect-src': ['self'],
'connect-src': ['self', 'http://localhost:3000'],
'font-src': ['self', 'data:', 'https:', 'https://fonts.gstatic.com'],
'object-src': ['none'],
'base-uri': ['self'],
Expand All @@ -27,4 +24,4 @@ const config = {
}
};

export default config;
export default config;
Loading
Loading