late — 8/13/2022, 12:26:45 AM

how to sveltekit with expressjs

♥ 3 ↩ 0 💬 7 comments

comments

grippins:

express easy af

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

and then check local port 3000

8/13/2022, 12:44:25 AM
grippins:

bro why is wasteof so hard to use

8/13/2022, 12:44:40 AM
grippins:
const express = require('express')
const app = express()
app.get('/', (req, res) => {
res.send('FOR SHOVELRY!')
})
8/13/2022, 12:44:59 AM
late:

i know how to expressjs

im just asking on HOW to use SvelteKit with ExpressJS

8/13/2022, 12:45:02 AM
grippins:

oh

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

idk google it

8/13/2022, 12:45:37 AM
late:

i did indeed google, is useless

8/13/2022, 12:45:52 AM
grippins:

oh i have an idea

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

might wanna add rate limiting with that though

8/13/2022, 12:49:02 AM