lora-studio / server.js
enzostvs's picture
enzostvs HF staff
run svelte with express
b628664
raw
history blame
362 Bytes
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');
});