You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starts the development server in ephemeral mode. It constructs a temporary build environment in `_site` and runs the Astro dev server with Hot Module Replacement (HMR).
127
+
Starts the development server in ephemeral mode. It constructs a temporary build environment in `site` and runs the Astro dev server with Hot Module Replacement (HMR).
128
128
129
129
**Usage:**
130
130
```bash
131
131
npx astrical dev
132
132
```
133
133
134
134
**What it does:**
135
-
1.**Prepares** the `_site` directory by mounting `src/core`, `src/modules`, and content.
135
+
1.**Prepares** the `site` directory by mounting `src/core`, `src/modules`, and content.
136
136
2.**Starts** the Astro development server (accessible at `http://localhost:4321` by default).
137
137
3.**Watches** for changes in your project and updates the ephemeral build automatically.
138
138
139
139
---
140
140
141
141
#### `build`
142
142
143
-
Compiles the project for production. It assembles the final site structure in `_site` and generates static assets.
143
+
Compiles the project for production. It assembles the final site structure in `site` and generates static assets.
144
144
145
145
**Usage:**
146
146
```bash
147
147
npx astrical build
148
148
```
149
149
150
150
**What it does:**
151
-
1.**Cleans** the `_site` directory to ensure a fresh build.
152
-
2.**Copies** all necessary source files (`src/core`, `src/modules`, `src/content`, `public`) into `_site`.
153
-
3.**Runs**`astro build` to generate the production output in `_site/dist`.
151
+
1.**Cleans** the `site` directory to ensure a fresh build.
152
+
2.**Copies** all necessary source files (`src/core`, `src/modules`, `src/content`, `public`) into `site`.
153
+
3.**Runs**`astro build` to generate the production output in `site/dist`.
154
154
155
155
**Output:**
156
-
- A production-ready static site in `_site/dist`.
156
+
- A production-ready static site in `site/dist`.
157
157
158
158
---
159
159
@@ -170,7 +170,7 @@ npx astrical preview
170
170
- You must run `astrical build` first.
171
171
172
172
**What it does:**
173
-
- Starts a local web server serving the static files from `_site/dist`.
173
+
- Starts a local web server serving the static files from `site/dist`.
174
174
175
175
---
176
176
@@ -184,7 +184,7 @@ npx astrical clean
184
184
```
185
185
186
186
**What it does:**
187
-
- Deletes `_site`, `dist`, and `node_modules/.vite`.
187
+
- Deletes `site`, `dist`, and `node_modules/.vite`.
0 commit comments