docs: change configurations to make v2 the main docs (#9729)
* docs: change configurations to make v2 the main docs * move api routes to top level * remove api prefix * update opengraph images * show v1 link * add redirect to v1
This commit is contained in:
1 parent
471f7e4a10
commit
88f2d17a24
40 files changed
+115
-128
No files matched your search
@@ -2388,7 +2388,7 @@ export const myWorkflow = createWorkflow(
|
||||
)
|
||||
```
|
||||
|
||||
Learn more in [this documentation](https://docs.medusajs.com/v2/advanced-development/workflows/add-workflow-hook).
|
||||
Learn more in [this documentation](!book!/learn/advanced-development/workflows/add-workflow-hook).
|
||||
|
||||
### Retry Steps
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 232 KiB After Width: | Height: | Size: 161 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 232 KiB After Width: | Height: | Size: 161 KiB |
@@ -41,7 +41,7 @@ const nextConfig = {
|
||||
|
||||
transpilePackages: ["docs-ui"],
|
||||
|
||||
basePath: process.env.NEXT_PUBLIC_BASE_PATH || "/v2/resources",
|
||||
basePath: process.env.NEXT_PUBLIC_BASE_PATH || "/resources",
|
||||
async redirects() {
|
||||
return [
|
||||
{
|
||||
|
||||
@@ -38,7 +38,7 @@ const SearchProvider = ({ children }: SearchProviderProps) => {
|
||||
],
|
||||
},
|
||||
],
|
||||
checkInternalPattern: new RegExp(`^${config.baseUrl}/v2/resources/.*`),
|
||||
checkInternalPattern: new RegExp(`^${config.baseUrl}/resources/.*`),
|
||||
filterOptions: searchFilters,
|
||||
}}
|
||||
commands={[
|
||||
|
||||
Reference in new issue
Block a user