-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ddc11dd
commit 167cf1f
Showing
1 changed file
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,21 @@ | ||
# blog | ||
This is the *new* repository for my personal site | ||
# Jacob's Blog | ||
|
||
This blog is forked from [timlrx/tailwind-nextjs-starter-blog](https://github.com/timlrx/tailwind-nextjs-starter-blog/stargazers/) with very minor modifications. | ||
|
||
**Static hosting services / GitHub Pages / S3 / Firebase etc.** | ||
|
||
1. Add `output: 'export'` in `next.config.js`. See [static exports documentation](https://nextjs.org/docs/app/building-your-application/deploying/static-exports#configuration) for more information. | ||
2. Comment out `headers()` from `next.config.js`. | ||
3. Add `unoptimized: true` to the `images` key in `next.config.js`: | ||
|
||
Alternatively, to continue using `next/image`, you can use an alternative image optimization provider such as Imgix, Cloudinary or Akamai. See [image optimization documentation](https://nextjs.org/docs/app/building-your-application/deploying/static-exports#image-optimization) for more details. | ||
|
||
4. Remove `api` folder and components which call the server-side function such as the Newsletter component. Not technically required and the site will build successfully, but the APIs cannot be used as they are server-side functions. | ||
5. Run `yarn build`. The generated static content is in the `out` folder. | ||
6. Deploy the `out` folder to your hosting service of choice or run `npx serve out` to view the website locally. | ||
|
||
**Note**: Deploying on Github pages require addition modifications to the base path. Please refer to the FAQ for more information. | ||
|
||
## Licence | ||
|
||
[MIT](https://github.com/timlrx/tailwind-nextjs-starter-blog/blob/main/LICENSE) © [Timothy Lin](https://www.timlrx.com) |