File size: 362 Bytes
b628664
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { handler } from './build/handler.js';
import express from 'express';

const app = express();

// Serve your "data/assets" folder
app.use(express.static('data/assets'))

// let SvelteKit handle everything else, including serving prerendered pages and static assets
app.use(handler);

app.listen(3000, () => {
    console.log('listening on port 3000');
});