@zorgo/next 1.1.0 → 1.1.2
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/dist/cli.d.mts +9 -0
- package/dist/cli.d.ts +9 -0
- package/dist/cli.js +343 -1
- package/dist/cli.js.map +1 -0
- package/dist/cli.mjs +343 -1
- package/dist/cli.mjs.map +1 -0
- package/dist/components.d.mts +152 -1
- package/dist/components.d.ts +152 -1
- package/dist/index.d.mts +240 -3
- package/dist/index.d.ts +240 -3
- package/dist/index.js +158 -1
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +158 -1
- package/dist/index.mjs.map +1 -0
- package/dist/seo.d.mts +83 -2
- package/dist/seo.d.ts +83 -2
- package/dist/server.js +459 -1
- package/dist/server.js.map +1 -0
- package/dist/server.mjs +422 -1
- package/dist/server.mjs.map +1 -0
- package/dist/slugs.d.mts +6 -0
- package/dist/slugs.d.ts +6 -0
- package/dist/tree/README.md +57 -0
- package/dist/tree/app/components/ModalRegistry.tsx +1 -1
- package/dist/tree/app/layout.tsx.gen.ts +4 -2
- package/dist/tree/app/locations/page.tsx +1 -1
- package/dist/tree/app/robots.ts +3 -1
- package/dist/tree/app/sitemap.ts +3 -1
- package/dist/tree/package.json.gen.ts +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useRouter } from "next/navigation";
|
|
3
3
|
import { useLocation } from "@zorgo/next";
|
|
4
|
-
import type { Location } from "@zorgo/
|
|
4
|
+
import type { Location } from "@zorgo/next";
|
|
5
5
|
import { FindLocation } from "@zorgo/next/components";
|
|
6
6
|
|
|
7
7
|
export default function LocationsPage() {
|
package/dist/tree/app/robots.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { MetadataRoute } from "next";
|
|
2
2
|
|
|
3
3
|
export default function robots(): MetadataRoute.Robots {
|
|
4
|
-
|
|
4
|
+
// || (not ??) so an empty NEXT_PUBLIC_SITE_URL (site piloted before its URL is
|
|
5
|
+
// set) falls back instead of producing a bare "/sitemap.xml".
|
|
6
|
+
const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || "http://localhost:3000";
|
|
5
7
|
return {
|
|
6
8
|
rules: { userAgent: "*", allow: "/", disallow: "/api" },
|
|
7
9
|
sitemap: `${baseUrl}/sitemap.xml`,
|
package/dist/tree/app/sitemap.ts
CHANGED
|
@@ -2,7 +2,9 @@ import type { MetadataRoute } from "next";
|
|
|
2
2
|
import { menuItemSlug } from "@zorgo/next/slugs";
|
|
3
3
|
import { menu } from "../lib/generated/menu";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// || (not ??) so an empty NEXT_PUBLIC_SITE_URL (site piloted before its URL is
|
|
6
|
+
// set) falls back instead of producing relative, unqualified sitemap URLs.
|
|
7
|
+
const BASE_URL = process.env.NEXT_PUBLIC_SITE_URL || "http://localhost:3000";
|
|
6
8
|
|
|
7
9
|
// Indexable static pages. Add a route here when you add a page you want crawled.
|
|
8
10
|
// Deliberately excludes /checkout (transactional, not indexable).
|
|
@@ -12,8 +12,8 @@ export default function generatePackageJson(opts: ScaffoldOptions): string {
|
|
|
12
12
|
"dev:no-prebuild": "next dev",
|
|
13
13
|
"prebuild": "tsx scripts/prebuild.ts",
|
|
14
14
|
"build": "tsx scripts/prebuild.ts && next build",
|
|
15
|
-
"cloudflare:deploy": "tsx scripts/prebuild.ts &&
|
|
16
|
-
"preview": "tsx scripts/prebuild.ts &&
|
|
15
|
+
"cloudflare:deploy": "tsx scripts/prebuild.ts && wrangler deploy",
|
|
16
|
+
"preview": "tsx scripts/prebuild.ts && wrangler dev",
|
|
17
17
|
},
|
|
18
18
|
dependencies: PINNED_VERSIONS,
|
|
19
19
|
devDependencies: DEV_DEPENDENCIES,
|