I manually added basePath: "/next13-appdir-blog", to toĭeploy it to that sub-URI, if you deploy without a sub-URI, you won't need this #Footnote 1. To the the regular content to the main branch too #Result Then when you use npm run deploy it will build, push to github pages, and push Edit Īdd 'output': 'export' to the file /** type Initializing project with template: app Installing dependencies: - react - react-dom - next - typescript - eslint - eslint-config-next #Step 2. I accepted all defaults but added "YES" to the use experimental app directory $ npx create-next-app myblog ✔ Would you like to use TypeScript with this project? … No / YES ✔ Would you like to use ESLint with this project? … No / YES ✔ Would you like to use ` src/ ` directory with this project? … NO / Yes ✔ Would you like to use experimental ` app/ ` directory with this project? … No / YES ✔ What import alias would you like configured? … * Creating a new Next.js app in /home/cdiesh/myblog. The exact step-by-step here is probably unnecessary but just trying to show the That react server components can be just like, async function components. The 'app' dir, with react server components, can be used to create static If you take nothing else away from this article, let it be that 'app' directory was added in version 13.3 Show how you can make your own static site with it. I just converted my blog to use the Next.js 'app' directory, and thought I'd
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |