Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ntheanh201/cloudflare-static-site
- Owner: ntheanh201
- License: other
- Created: 2024-08-26T01:43:09.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-08-26T12:40:03.000Z (2 months ago)
- Last Synced: 2024-08-26T14:36:20.543Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 237 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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!