late @late

how to sveltekit with expressjs

Aug 13, 2022, 12:26 AM
7

comments

express easy af

const express = require(‘express’)
const app = express()
app.get('/', (req, res) => {
res.send('FOR SHOVELRY!')
})

and then check local port 3000

bro why is wasteof so hard to use

const express = require('express')
const app = express()
app.get('/', (req, res) => {
res.send('FOR SHOVELRY!')
})

i know how to expressjs

im just asking on HOW to use SvelteKit with ExpressJS

oh

use svelte to render into a html string and just send that overseas

idk google it

i did indeed google, is useless

oh i have an idea

read from your output directory using something like res.sendFile()

might wanna add rate limiting with that though