Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment error #44

Open
Hadil66 opened this issue Oct 10, 2024 · 2 comments
Open

Deployment error #44

Hadil66 opened this issue Oct 10, 2024 · 2 comments
Assignees

Comments

@Hadil66
Copy link

Hadil66 commented Oct 10, 2024

Image

@Hadil66 Hadil66 converted this from a draft issue Oct 10, 2024
@Hadil66
Copy link
Author

Hadil66 commented Oct 10, 2024

Wat heb ik gedaan:
In de terminal: npm i -D @sveltejs/adapter-vercel
In svelte.config.js:

import adapter from '@sveltejs/adapter-vercel';

export default {
	kit: {
		adapter: adapter({
			// see below for options that can be set here
		})
	}
};

Door dit toe te voegen aan je project kun je Vercel-specifieke opties opgeven.

Vraag: Is deployment configuration ook nodig?

Bronnen:

Hadil66 added a commit to Hadil66/fabrique that referenced this issue Oct 10, 2024
adapter vercel
Hadil66 added a commit to Hadil66/fabrique that referenced this issue Oct 10, 2024
@Hadil66
Copy link
Author

Hadil66 commented Oct 10, 2024

In page.js:

/** @type {import('@sveltejs/adapter-vercel').Config} */export const config = {	runtime: 'edge'};

In +layout.js:

/** @type {import('@sveltejs/adapter-vercel').Config} */
export const config = {
	runtime: 'nodejs18.x'
};

@Hadil66 Hadil66 self-assigned this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant