npx vaderjs @latest
Create a pages folder - which allows you to have nextjs page like routing via buns file based router
Tip: Each folder can be deep nested up to 4 levels!
/pages/index.jsx = /
/pages/home/[page].jsx = /home/:page
/pages/path/index.jsx = /path/
/pages/test/[[...catchall]]/index.jsx = /path/test/*
/pages/route/[param1]/[param2].jsx = /path/route/:param1/:param2
Keyword folders - all files are passed from these folders to the build folder
1. app - used for jsx route files
2. public - used for anything / css / json etc
import defineConfig from "vaderjs/config";
export default defineConfig({
port: 3000,
host: 'localhost',
hot_reload: true,
})