Skip to content

Commit

Permalink
feat: Setup rewrite and redirect w/ docs site
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Dec 3, 2023
1 parent 418249f commit 1430e75
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
15 changes: 5 additions & 10 deletions website/app/page.tsx → website/app/wip/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export default function Home() {
className="pointer-events-none flex place-items-center gap-2 p-8 lg:pointer-events-auto lg:p-0"
href="https://vercel.com?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
rel="noopener noreferrer">
By{' '}
<Image
src="/vercel.svg"
Expand Down Expand Up @@ -44,8 +43,7 @@ export default function Home() {
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
target="_blank"
rel="noopener noreferrer"
>
rel="noopener noreferrer">
<h2 className={`mb-3 text-2xl font-semibold`}>

Check warning on line 47 in website/app/wip/page.tsx

View workflow job for this annotation

GitHub Actions / Run type checks, lint, and tests

Strings must use singlequote
Docs{' '}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
Expand All @@ -61,8 +59,7 @@ export default function Home() {
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
target="_blank"
rel="noopener noreferrer"
>
rel="noopener noreferrer">
<h2 className={`mb-3 text-2xl font-semibold`}>

Check warning on line 63 in website/app/wip/page.tsx

View workflow job for this annotation

GitHub Actions / Run type checks, lint, and tests

Strings must use singlequote
Learn{' '}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
Expand All @@ -78,8 +75,7 @@ export default function Home() {
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
target="_blank"
rel="noopener noreferrer"
>
rel="noopener noreferrer">
<h2 className={`mb-3 text-2xl font-semibold`}>

Check warning on line 79 in website/app/wip/page.tsx

View workflow job for this annotation

GitHub Actions / Run type checks, lint, and tests

Strings must use singlequote
Templates{' '}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
Expand All @@ -95,8 +91,7 @@ export default function Home() {
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
target="_blank"
rel="noopener noreferrer"
>
rel="noopener noreferrer">
<h2 className={`mb-3 text-2xl font-semibold`}>

Check warning on line 95 in website/app/wip/page.tsx

View workflow job for this annotation

GitHub Actions / Run type checks, lint, and tests

Strings must use singlequote
Deploy{' '}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
Expand Down
13 changes: 12 additions & 1 deletion website/next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}
const nextConfig = {
rewrites: async () => ({
beforeFiles: [],
afterFiles: [
{source: '/:p*', destination: 'https://opensdks.mintlify.app/:p*'},
],
fallback: [],
}),
redirects: async () => [
{source: '/docs', destination: '/introduction', permanent: false},
],
}

module.exports = nextConfig

1 comment on commit 1430e75

@vercel
Copy link

@vercel vercel bot commented on 1430e75 Dec 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

opensdks – ./

opensdks.vercel.app
opensdks-venice.vercel.app
opensdks.org
opensdks-git-main-venice.vercel.app

Please sign in to comment.