From c71de50730561e543733ee178e94c802b17ecfe5 Mon Sep 17 00:00:00 2001 From: Ivan Starkov Date: Thu, 1 Aug 2024 19:13:32 +0300 Subject: [PATCH] experimental: Set vanilla export as default and add static site help link (#3853) ## Description Set vanilla export as default and add static site help link image - [ ] - Doc must be created here https://wstd.us/ssg cc @kof @johnsicili ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 5de6) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file --- .../app/builder/features/topbar/publish.tsx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/apps/builder/app/builder/features/topbar/publish.tsx b/apps/builder/app/builder/features/topbar/publish.tsx index ef2e3b060b..2e6ed67c70 100644 --- a/apps/builder/app/builder/features/topbar/publish.tsx +++ b/apps/builder/app/builder/features/topbar/publish.tsx @@ -751,7 +751,7 @@ const isDeployTargets = (value: string): value is DeployTargets => const ExportContent = (props: { projectId: Project["id"] }) => { const npxCommand = "npx webstudio@latest"; - const [deployTarget, setDeployTarget] = useState("vercel"); + const [deployTarget, setDeployTarget] = useState("vanilla"); return ( { projectId={props.projectId} templates={deployTargets[deployTarget].ssgTemplates} /> +
+ + Learn about deploying static sites{" "} + + here + + +