Development & Building
Development Server
To start a local development server for the project, use the following command:
1. Install Dependencies: Make sure you have Node.js installed. Then, run the following command to install the necessary dependencies:
npm install
2. Start Development Server: Use the following command to start the development server:
npm run dev
Manual Project Building
To manually build the project in order to have a local production version of the website, follow these steps:
1. Install Dependencies: Make sure you have Node.js installed. Then, run the following command to install the necessary dependencies:
npm install
2. Build the Project: Use the following command to build the project:
npm run build
3. Preview the Build: You can preview the built project locally with:
npm run preview
Automatic Deployment
For deployment it is recommended to use Cloudflare Pages, which provides a seamless integration for static sites.
-
Connect Repository: Link your GitHub repository to Cloudflare Pages.
-
Set Framework Settings: Choose "Astro" as the framework during the setup process. This will automatically configure the build settings and other configurations so everything works smoothly.
-
Deploy: Once everything is set up, Cloudflare Pages will automatically build and deploy your site whenever you push changes to the connected repository.