Skip to content

Commit

Permalink
build: moving docs back to hybrid site to support redirects (aws-ampl…
Browse files Browse the repository at this point in the history
…ify#1116)

* build: moving docs back to hybrid site to support redirects

* fix: redirects should be async

* fix: fixing incorrect link
  • Loading branch information
zchenwei authored Jan 21, 2022
1 parent 15d28c3 commit 3e88dfb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions amplify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ applications:
- node -v
- yarn build
artifacts:
baseDirectory: out
baseDirectory: .next
files:
- "**/*"
- '**/*'
cache:
paths:
- node_modules/**/*
Expand Down
2 changes: 1 addition & 1 deletion docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = withNextPluginPreval({
},

// These redirects are because of the IA change from previous docs
redirects() {
async redirects() {
return [
// Normalizing URLs
// these need to come before the generic redirects
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.0.1",
"scripts": {
"dev": "next dev -p 5000",
"build": "next build && next export",
"build": "next build",
"lint": "next lint",
"start": "next start",
"test": "$_ run build"
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/theming/index.page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ If you want more customization than the design tokens provide, you can also over
}
```

Or if you prefer you can use [alternative styling with a styling libraries](alternativeStyling)
Or if you prefer you can use [alternative styling with a styling libraries](/theming/alternative-styling)

#### Unstyled

Expand Down

0 comments on commit 3e88dfb

Please sign in to comment.