Skip to content

Commit

Permalink
Added vercel config
Browse files Browse the repository at this point in the history
  • Loading branch information
bring-shrubbery committed Mar 23, 2024
1 parent 07b977e commit e7f78cf
Show file tree
Hide file tree
Showing 3 changed files with 302 additions and 3 deletions.
15 changes: 12 additions & 3 deletions apps/docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import starlight from "@astrojs/starlight";
import tailwind from "@astrojs/tailwind";
import vercelStatic from "@astrojs/vercel/static";
import { defineConfig } from "astro/config";

// https://astro.build/config
export default defineConfig({
site: "https://sp-hooks.js.org/",
output: "static",
adapter: vercelStatic(),
integrations: [
starlight({
title: "Search Params Hooks",
Expand All @@ -18,19 +21,25 @@ export default defineConfig({
items: [
{ label: "Introduction", link: "/getting-started/introduction/" },
{ label: "Starting with React", link: "/getting-started/react/" },
{ label: "Starting with Next.js", link: "/getting-started/nextjs/" },
{
label: "Starting with Next.js",
link: "/getting-started/nextjs/",
},
],
},
{
label: "Guides",
items: [
{ label: "Basic", link: "/guides/basic/" },
{ label: "With default values", link: "/guides/default-values" },
{ label: "React Server Components (in Next.js)", link: "/guides/rsc" },
{
label: "React Server Components (in Next.js)",
link: "/guides/rsc",
},
{ label: "With validation (wip)", link: "/guides/validation" },
{ label: "With Jotai", link: "/guides/jotai" },
{ label: "With Zustand", link: "/guides/zustand" },
{ label: "With Redux", link: "/guides/redux" }
{ label: "With Redux", link: "/guides/redux" },
],
},
{
Expand Down
1 change: 1 addition & 0 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@astrojs/starlight": "^0.21.2",
"@astrojs/starlight-tailwind": "^2.0.1",
"@astrojs/tailwind": "^5.1.0",
"@astrojs/vercel": "^7.4.0",
"astro": "^4.5.9",
"dotenv-cli": "^7.4.1",
"sharp": "^0.33.2",
Expand Down
Loading

0 comments on commit e7f78cf

Please sign in to comment.