Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
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'); | |
}); |