Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Steps component to space.mdx #8099

Merged
merged 1 commit into from
May 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions src/content/docs/en/guides/deploy/space.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ type: deploy
i18nReady: true
---
import InstallGuideTabGroup from '~/components/TabGroup/InstallGuideTabGroup.astro';
import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro'
import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro';
import { Steps } from '@astrojs/starlight/components';

[Deta Space](https://deta.space/developers) is a personal computer that lives in the cloud — a ‘personal cloud’. You can build and run apps for yourself in your own "Space". You can publish the apps you've built, and they'll run for people all around the world.

Expand All @@ -32,16 +33,19 @@ space new
The Space CLI will try to auto-detect the configuration for your app. Accept the suggested configuration and then follow the instructions below, depending on the type of Astro app you want to deploy.
:::


## Project Configuration

### Static site

Make the following changes to the `Spacefile` file at the root of your project generated by the Space CLI.


<Steps>
1. Change the engine to `static`.

2. Add Astro's build command to the list of `commands`.
3. Serve the `dist` directory generated by Astro.

3. Serve the `dist` directory generated by Astro.
</Steps>

```yaml title="Spacefile" {6,8,9}
# Spacefile Docs: https://deta.space/docs/en/build/reference/spacefile
Expand All @@ -57,13 +61,17 @@ micros:

### Server-side rendered site


Make the following changes to the `Spacefile` file at the root of your project generated by the Space CLI:

<Steps>
1. Configure the `nodejs16` engine.

2. Add the `build` command.
3. Include the `dist` directory generated by Astro.

3. Include the `dist` directory generated by Astro.

4. Run the node command.
</Steps>

```yaml title="Spacefile" {6,8,10,11}
# Spacefile Docs: https://deta.space/docs/en/build/reference/spacefile
Expand Down
Loading