Skip to content

Commit

Permalink
Add Steps component to space.mdx (#8099)
Browse files Browse the repository at this point in the history
Co-authored-by: Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com>
Co-authored-by: Sergio A. Arevalo Soria <sergio.alberto.arevalo.soria@nav.no>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
  • Loading branch information
4 people committed May 2, 2024
1 parent a46c79e commit d4b080f
Showing 1 changed file with 14 additions and 6 deletions.
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

0 comments on commit d4b080f

Please sign in to comment.