Using Svelte with Next.js

Hi everyone, I was wondering if it's possible to use Svelte with Next.js? I know I need to use Next.js for SSR or else my site won't be fast enough (dan abrams said so) but also rich harris said the dom is pure overhead so i dont wanna use react. how can i slot in svelte instead? im sure there is a way...
16 Replies
cje
cje9mo ago
You should use react instead of next js
benten
bentenOP9mo ago
no i cant, without next.js my site will be too slow without ssr and vercel
cje
cje9mo ago
Tailwind can fix that
benten
bentenOP9mo ago
dan abrams and geo ranch said i have to use next and vercel tho how can i use tailwind does it use jsx?
cje
cje9mo ago
Not sure But I heard it’s better than MySQL
benten
bentenOP9mo ago
oh okay thats good i heard mysql uses client side rendering which is bad
NotRebekahMikaelson™
@benothy tenothy for ssr and ssg with svelte. use. sveltekit https://kit.svelte.dev/
SvelteKit
Web development, streamlined
From An unknown user
From An unknown user
Oreo ™
Oreo ™9mo ago
react-mongodb is another option it uses react ssr rendering for mongodb
NotRebekahMikaelson™
fun. fact. you can. render vue or angular also with nextjs
Matvey
Matvey9mo ago
I tried to do this for the meme, and it actually was easier than I thought https://github.com/ronanru/svelte-in-nextjs
GitHub
GitHub - ronanru/svelte-in-nextjs
Contribute to ronanru/svelte-in-nextjs development by creating an account on GitHub.
Matvey
Matvey9mo ago
RSC and svelte in one project :deranged:
NotRebekahMikaelson™
lmao does it. acrually work show the deployed version (too lazy. to clone and do. i)
Matvey
Matvey9mo ago
ImEgg
ImEgg9mo ago
what the fuck did I just read
Y7YA
Y7YA9mo ago
or just use astro.. ssr + react + svelte + vercel
Want results from more Discord servers?
Add your server