The next iteration of Riffy Blog
DEPRECATED: This site should be able to be used as a study on how Astro works. But it will no longer be maintained anymore since I merged entire blog into my frontpage repository
Create a workspace in Contentful and import content model with this provided JSON files.
Then, provide Contentful API keys by copying .env.example
to .env
. During developnent, scripts are going to use token CONTENTFUL_PREVIEW_ACCESS_TOKEN
to obtain contents from CMS. Which means you will be able to see drafts or unpublished articles in local development, but not in production CI.
With that cleared, you can generate *.md
Markdown contents by running generator scripts.
$ pnpm data build
If there're any encounter isuues related to the local contents, scripts can be use to delete all *.md
as well.
$ pnpm data clean
Start local server with following command.
$ pnpm dev
pnpm build
As a result, you will get dist/
directory which contains all static contents to be deployed.