From d4b080fd9f99dcd23ef5affec93830e1a6da315e Mon Sep 17 00:00:00 2001 From: Eduardo Pereira Date: Thu, 2 May 2024 13:33:49 -0300 Subject: [PATCH] Add Steps component to `space.mdx` (#8099) Co-authored-by: Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com> Co-authored-by: Sergio A. Arevalo Soria Co-authored-by: Sarah Rainsberger --- src/content/docs/en/guides/deploy/space.mdx | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/content/docs/en/guides/deploy/space.mdx b/src/content/docs/en/guides/deploy/space.mdx index 91730663f2b3c..961283f469a84 100644 --- a/src/content/docs/en/guides/deploy/space.mdx +++ b/src/content/docs/en/guides/deploy/space.mdx @@ -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. @@ -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. - + + 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. + ```yaml title="Spacefile" {6,8,9} # Spacefile Docs: https://deta.space/docs/en/build/reference/spacefile @@ -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: + 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. + ```yaml title="Spacefile" {6,8,10,11} # Spacefile Docs: https://deta.space/docs/en/build/reference/spacefile