Skip to content

Files

Latest commit

 

History

History
 
 

adapter-begin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.cjs:

const begin = require('@sveltejs/adapter-begin');

module.exports = {
	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