Project Structure

DinoSsr is an experimental work in progress and subject to change!

DinoSsr project directories are organised like so:

+ project/
|--+ routes/
|  |-- 404.svelte
|  |-- index.svelte
|--+ static/
|  |-- favicon.ico
|-- app.html
|-- mod.ts

Automatic routes are generated for the static files and the routes directory structure. Svelte routes are wrapped in the app.html template.

index.svelte is the index page for a specific route. The optional 404.svelte and 500.svelte templates are for their corresponding error pages.

Additional directories can be used to organise Svelte components. Files in components can be imported from @components/name.svelte for example.

mod.ts is the server entry point.