create-qwik 0.0.38 → 0.0.39-dev20220805031634
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/starters/apps/base/package.json +7 -7
- package/starters/apps/base/src/entry.dev.tsx +4 -2
- package/starters/apps/base/src/entry.ssr.tsx +3 -3
- package/starters/apps/blank/src/entry.express.tsx +10 -3
- package/starters/apps/blank/src/entry.ssr.tsx +3 -3
- package/starters/apps/qwik-city/package.json +1 -1
- package/starters/apps/qwik-city/src/components/body/body.tsx +2 -2
- package/starters/apps/qwik-city/src/components/breadcrumbs/breadcrumbs.css +25 -0
- package/starters/apps/qwik-city/src/components/breadcrumbs/breadcrumbs.tsx +77 -0
- package/starters/apps/qwik-city/src/components/counter/counter.tsx +2 -2
- package/starters/apps/qwik-city/src/components/footer/footer.css +1 -1
- package/starters/apps/qwik-city/src/components/footer/footer.tsx +3 -1
- package/starters/apps/qwik-city/src/components/header/header.css +10 -1
- package/starters/apps/qwik-city/src/components/header/header.tsx +24 -32
- package/starters/apps/qwik-city/src/components/menu/menu.css +10 -0
- package/starters/apps/qwik-city/src/components/menu/menu.tsx +5 -5
- package/starters/apps/qwik-city/src/global.css +21 -12
- package/starters/apps/qwik-city/src/root.tsx +1 -1
- package/starters/apps/qwik-city/src/routes/about-us.tsx +2 -4
- package/starters/apps/qwik-city/src/routes/api/[org]/[user].json/index.ts +12 -23
- package/starters/apps/qwik-city/src/routes/api/_layout-foo/index.tsx +18 -24
- package/starters/apps/qwik-city/src/routes/api/data.json.ts +6 -9
- package/starters/apps/qwik-city/src/routes/api/index@foo.tsx +7 -4
- package/starters/apps/qwik-city/src/routes/blog/[...slug].tsx +28 -5
- package/starters/apps/qwik-city/src/routes/blog/_layout/index.tsx +2 -2
- package/starters/apps/qwik-city/src/routes/dashboard/index.tsx +8 -0
- package/starters/apps/qwik-city/src/routes/docs/[category]/[id]/index.tsx +14 -6
- package/starters/apps/qwik-city/src/routes/docs/{_layout/docs.css → _layout!/index.css} +2 -1
- package/starters/apps/qwik-city/src/routes/docs/_layout!/index.tsx +31 -0
- package/starters/apps/qwik-city/src/routes/docs/_menu.md +4 -2
- package/starters/apps/qwik-city/src/routes/docs/getting-started.md +44 -0
- package/starters/apps/qwik-city/src/routes/docs/index.tsx +2 -4
- package/starters/apps/qwik-city/src/routes/docs/{introduction → overview}/index.md +2 -2
- package/starters/apps/qwik-city/src/routes/index.tsx +6 -1
- package/starters/apps/qwik-city/src/routes/products/[id].tsx +122 -0
- package/starters/features/react/package.json +1 -1
- package/starters/features/react/src/entry.ssr.tsx +1 -1
- package/starters/features/tailwindcss/{postcss.config.js → postcss.config.cjs} +0 -0
- package/starters/features/tailwindcss/{tailwind.config.js → tailwind.config.cjs} +0 -0
- package/starters/servers/cloudflare-pages/src/entry.cloudflare.tsx +4 -50
- package/starters/servers/express/package.json +1 -1
- package/starters/servers/express/src/entry.express.tsx +19 -8
- package/starters/servers/{netlify → netlify-edge}/.node-version +0 -0
- package/starters/servers/{netlify → netlify-edge}/README.md +0 -0
- package/starters/servers/{netlify → netlify-edge}/netlify.toml +0 -0
- package/starters/servers/{netlify → netlify-edge}/package.json +0 -0
- package/starters/servers/{netlify → netlify-edge}/public/_headers +0 -0
- package/starters/servers/netlify-edge/src/entry.netlify.ts +6 -0
- package/starters/servers/{netlify → netlify-edge}/tsconfig.json +0 -0
- package/starters/apps/qwik-city/src/routes/__auth/_layout.tsx +0 -17
- package/starters/apps/qwik-city/src/routes/__auth/sign-in.tsx +0 -25
- package/starters/apps/qwik-city/src/routes/__auth/sign-up.tsx +0 -29
- package/starters/apps/qwik-city/src/routes/docs/_layout/index.tsx +0 -23
- package/starters/apps/qwik-city/src/routes/docs/getting-started.mdx +0 -32
- package/starters/servers/netlify/src/entry.netlify.ts +0 -27
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { render } from './entry.ssr';
|
|
2
|
-
|
|
3
|
-
const handler = async (request: Request) => {
|
|
4
|
-
try {
|
|
5
|
-
// Handle static files
|
|
6
|
-
if (/\.\w+$/.test(request.url)) {
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const ssrResult = await render({
|
|
11
|
-
url: request.url,
|
|
12
|
-
base: '/build/',
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
const response = new Response(ssrResult.html, {
|
|
16
|
-
headers: {
|
|
17
|
-
'Content-Type': 'text/html; charset=utf-8',
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
return response;
|
|
21
|
-
} catch (e) {
|
|
22
|
-
// 500 Error
|
|
23
|
-
return new Response(String(e), { status: 500 });
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export default handler;
|