Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 756 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 756 Bytes

adapter-begin

Adapter for Svelte apps that creates a Begin app, using a function for dynamic server rendering.

Configuration

Add "@sveltejs/adapter-begin": "next" to the devDependencies in your package.json and run npm install.

Then add the adapter to your svelte.config.js:

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

export default {
	kit: {
		...
		adapter: begin()
	}
};

This adapter expects to find an OpenJS Architect app.arc file in the project root. It will use it to determine where to write static assets to based on the @static configuration. The default configuration for this file is as follows:

@app
svelte-kit-app

@http
get /

@static
folder public