Skip to content

Commit

Permalink
chore: setup sample routes
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Oct 11, 2023
1 parent 5d27f6a commit d5456d0
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 33 deletions.
3 changes: 3 additions & 0 deletions apps/next/src/app/products/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default async function ProductsPage() {
return <p>TODO</p>
}
3 changes: 3 additions & 0 deletions apps/next/src/pages/pages-router/products/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function ProductsPage() {
return <p>TODO</p>
}
3 changes: 3 additions & 0 deletions apps/nuxt/pages/products/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>
<p>TODO</p>
</template>
1 change: 1 addition & 0 deletions apps/nuxt/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"cache": false
},
"generate": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
}
}
Expand Down
3 changes: 3 additions & 0 deletions apps/remix/app/routes/products.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function ProductsPage() {
return <p>TODO</p>
}
15 changes: 10 additions & 5 deletions apps/studio/sanity.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,23 @@ const sharedSettings = definePlugin({
})

const composerWorkspaces = Object.entries({
remix: process.env.SANITY_STUDIO_REMIX_PREVIEW_URL || 'http://localhost:3000',
remix:
process.env.SANITY_STUDIO_REMIX_PREVIEW_URL ||
'http://localhost:3000/products',
next: {
'app-router':
process.env.SANITY_STUDIO_NEXT_APP_ROUTER_PREVIEW_URL ||
'http://localhost:3001/app',
'http://localhost:3001/products',
'pages-router':
process.env.SANITY_STUDIO_NEXT_PAGES_ROUTER_PREVIEW_URL ||
'http://localhost:3001/pages',
'http://localhost:3001/pages-router/products',
},
nuxt: process.env.SANITY_STUDIO_NUXT_PREVIEW_URL || 'http://localhost:3003',
nuxt:
process.env.SANITY_STUDIO_NUXT_PREVIEW_URL ||
'http://localhost:3003/products',
svelte:
process.env.SANITY_STUDIO_SVELTE_PREVIEW_URL || 'http://localhost:3004',
process.env.SANITY_STUDIO_SVELTE_PREVIEW_URL ||
'http://localhost:3004/products',
}).map(([name, previewUrl]) => {
const plugins =
typeof previewUrl === 'string'
Expand Down
4 changes: 2 additions & 2 deletions apps/svelte/src/routes/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<li aria-current={$page.url.pathname === '/' ? 'page' : undefined}>
<a href="/">Home</a>
</li>
<li aria-current={$page.url.pathname === '/about' ? 'page' : undefined}>
<a href="/about">About</a>
<li aria-current={$page.url.pathname === '/products' ? 'page' : undefined}>
<a href="/products">Products</a>
</li>
<li aria-current={$page.url.pathname.startsWith('/sverdle') ? 'page' : undefined}>
<a href="/sverdle">Sverdle</a>
Expand Down
26 changes: 0 additions & 26 deletions apps/svelte/src/routes/about/+page.svelte

This file was deleted.

5 changes: 5 additions & 0 deletions apps/svelte/src/routes/products/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<svelte:head>
<title>Products</title>
</svelte:head>

<p>TODO</p>
File renamed without changes.

0 comments on commit d5456d0

Please sign in to comment.