Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ntheanh201/cloudflare-static-site

Cloudflare Pages for static site using dotenvx to preload environment variables
https://github.com/ntheanh201/cloudflare-static-site

Last synced: 24 days ago
JSON representation

Cloudflare Pages for static site using dotenvx to preload environment variables

Awesome Lists containing this project

README

        

# cloudflare-static-site

- Build and deploy a static site (without frameworks) with NPM scripts + Cloudflare Pages.
- Use dotenvx to preload environment variables.

The compiled files will go to the directory `/dist`

- from `js` to `dist/js`.
- from `css` to `dist/css`.

## Getting Started

1. Clone this repository.
2. Install the dependencies: `npm install`.
3. Build the project: `npm run build`.
4. Deploy the project to Cloudflare Pages.
5. Set the environment variables in the Cloudflare Pages dashboard.
6. Enjoy your static site!