Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/app/(dashboard)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function HomePage() {
</p>
<div className="mt-8 sm:max-w-lg sm:mx-auto sm:text-center lg:text-left lg:mx-0">
<a
href="https://vercel.com/templates/next.js/next-js-saas-starter"
href="https://orunbase.com/baselines/"
target="_blank"
>
<Button
Expand Down
8 changes: 4 additions & 4 deletions testing/e2e.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,10 @@ if name not in [text(m) for m in re.findall(r'<span class="ml-2 text-xl[^"]*">(.
bad(f"the header beside the logo does not read {name!r}")
if ">ACME<" in home:
bad("the home page still carries the baseline's name")
for upstream in ('href="https://github.com/nextjs/saas-starter"',
'href="https://vercel.com/templates/next.js/next-js-saas-starter"'):
if upstream not in home:
bad(f"the marketing page's upstream link was renamed: {upstream} is gone")
if 'href="https://github.com/nextjs/saas-starter"' not in home:
bad("the marketing page's upstream link was renamed")
if 'href="https://orunbase.com/baselines/"' not in home:
bad("the marketing page's \"Deploy your own\" does not go to orunbase.com/baselines/")

s, _, pricing = req("/pricing")
if s != 200:
Expand Down
9 changes: 6 additions & 3 deletions testing/placement.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,13 @@ for comp_path in ("apps/web", "infra/terraform/supabase", "infra/terraform/cloud
if not ref.startswith(f"secret://{ws}/{repo}/"):
bad(f"{comp_path} {k} resolves from {ref} — not the product's workspace and project")

# The upstream template's own links survive the rename.
# The upstream template's own link survives the rename, and "Deploy your own"
# goes to Orunbase's baselines, a path that spells no slug.
home = (tree / "apps/web/app/(dashboard)/page.tsx").read_text()
if 'href="https://github.com/nextjs/saas-starter"' not in home or "next-js-saas-starter" not in home:
bad("the marketing page's links to the upstream template were renamed")
if 'href="https://github.com/nextjs/saas-starter"' not in home:
bad("the marketing page's link to the upstream template was renamed")
if 'href="https://orunbase.com/baselines/"' not in home:
bad("the marketing page's \"Deploy your own\" does not go to orunbase.com/baselines/")

# The wrangler config is committed, and is the fixture render of the
# (rebranded) template — the composition checks it exists before the build.
Expand Down
4 changes: 2 additions & 2 deletions tooling/rebrand/rebrand.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ function trackedFiles() {
//
// This tree IS Vercel's Next.js SaaS Starter, whose own name happens to be
// this baseline's slug. Where the code names its upstream — the marketing
// page's "View the code" and terminal, the "Deploy your own" button, the
// app's README — the slug is the upstream's, and renaming it would point a
// page's "View the code" and terminal, the app's README — the slug is the
// upstream's, and renaming it would point a
// product's visitors at `github.com/nextjs/<their-repo>`, which does not
// exist. Protected from every rule, and allowed by the leftover sweep.
const UPSTREAM = [
Expand Down
Loading