Tools | |
---|---|
Next JS | https://nextjs.org/ |
React Query | https://tanstack.com/query/v5 |
Chakra UI | https://chakra-ui.com |
etc |
https://github.com/qrizan/nestjs-swagger-prisma
copy .env.example .env
example
NEXT_PUBLIC_API_BACKEND = 'http://localhost:3000'
- /src/pages/api/robots.ts
check URL: http://<YOUR_DOMAIN>/robots.txt
- /src/pages/sitemap.xml.ts
check URL: http://<YOUR_DOMAIN>/sitemap.xml
- next.config.mjs
...
images: {
remotePatterns: [
{
protocol: 'http',
hostname: 'localhost'
},
{
protocol: 'https',
hostname: '**',
port: '',
pathname: '**',
},
],
},
...
cd nextjs-chakra-reactquery
pnpm install
pnpm dev
check URL: http://localhost:8080