diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index ce822ebd..2b9b15ea 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -21,4 +21,4 @@ jobs: - name: Build run: pnpm build - - run: pnpx pkg-pr-new publish --compact './packages/superflare' './packages/superflare-remix' + - run: pnpx pkg-pr-new publish './packages/superflare' './packages/superflare-remix' \ No newline at end of file diff --git a/.gitignore b/.gitignore index 68758b89..85b4769d 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,7 @@ yarn-error.log* .env.development.local .env.test.local .env.production.local +.dev.vars # turbo .turbo diff --git a/.nvmrc b/.nvmrc index 58a4133d..209e3ef4 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16.13.0 +20 diff --git a/apps/site/.env.example b/apps/site/.env.example index f88f5150..71272a7e 100644 --- a/apps/site/.env.example +++ b/apps/site/.env.example @@ -1,3 +1,3 @@ -NEXT_PUBLIC_DOCSEARCH_APP_ID=RETR9S9VHS -NEXT_PUBLIC_DOCSEARCH_API_KEY=326c1723a310dfe29004b47608709907 -NEXT_PUBLIC_DOCSEARCH_INDEX_NAME=tailwindui-protocol +DOCSEARCH_APP_ID=RETR9S9VHS +DOCSEARCH_API_KEY=326c1723a310dfe29004b47608709907 +DOCSEARCH_INDEX_NAME=tailwindui-protocol diff --git a/apps/site/README.md b/apps/site/README.md index 4aee42cd..98882a57 100644 --- a/apps/site/README.md +++ b/apps/site/README.md @@ -8,7 +8,7 @@ To get started with this template, first install the npm dependencies: ```bash npm install -cp .env.example .env.local +cp .env.example .dev.vars ``` Next, run the development server: @@ -28,9 +28,9 @@ You can start editing this template by modifying the files in the `/src` folder. By default this template uses [Algolia DocSearch](https://docsearch.algolia.com) for the global search. DocSearch is free for open-source projects, and you can sign up for an account on their website. Once your DocSearch account is ready, update the following [environment variables](https://nextjs.org/docs/basic-features/environment-variables) in your project with the values provided by Algolia: ``` -NEXT_PUBLIC_DOCSEARCH_APP_ID= -NEXT_PUBLIC_DOCSEARCH_API_KEY= -NEXT_PUBLIC_DOCSEARCH_INDEX_NAME= +DOCSEARCH_APP_ID= +DOCSEARCH_API_KEY= +DOCSEARCH_INDEX_NAME= ``` ## License diff --git a/apps/site/app/components/Button.tsx b/apps/site/app/components/Button.tsx index ab4cf4de..cdca49ae 100644 --- a/apps/site/app/components/Button.tsx +++ b/apps/site/app/components/Button.tsx @@ -8,21 +8,27 @@ const styles = { "rounded-full bg-slate-800 py-2 px-4 text-sm font-medium text-white hover:bg-slate-700 focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white/50 active:text-slate-400", }; -export function Button({ +export function Button({ variant = "primary", className, href, ...props -}: { +}: Omit< + React.ComponentProps, + "to" +> & { variant?: keyof typeof styles; className?: string; - href?: string; -} & React.ComponentProps<"button" | typeof Link>) { + href?: Href; +}) { className = clsx(styles[variant], className); return href ? ( - + ) : ( -