Is it possible to have a SSG that has routes in CPanel
Unanswered
Dwarf Crocodile posted this in #help-forum
Dwarf CrocodileOP
I know that this might sound weird, but is it possible to have a SSG Next14 project with app route and slugs such this structure and deploy it in CPanel as static HTML?
/src
/app
/fr
/[slug]
page.tsx
layout.tsx
page.tsx
/en
/[slug]
page.tsx
layout.tsx
page.tsx
layout.tsx
page.tsx
/components
/Header.tsx
/Footer.tsx
/styles
globals.css
/utils
helpers.ts
next.config.js
tsconfig.json
package.json3 Replies
Spectacled bear
If my understanding is correct, the purpose of SSG is to build a static page. But the caveat here would be to define all your possible options for slug in the page and define a return for each slug as it cannot dynamically fetch data from db
Dwarf CrocodileOP
@Spectacled bear Yeah, i went with ViteJS/React
It's better in this case
Thanks 🙏
It's better in this case
Thanks 🙏
Spectacled bear
@Dwarf Crocodile Even better would be vite with astro