Skip to content

Commit

Permalink
Update to next 13.4.18
Browse files Browse the repository at this point in the history
  • Loading branch information
venables committed Aug 18, 2023
1 parent 838722f commit 6821d7f
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 80 deletions.
9 changes: 6 additions & 3 deletions lib/utils/url-fns/url-fns.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,32 @@ import { appHost, fullURL } from "./url-fns"
test("appHost() returns the app host", () => {
const oldHost = env.NEXT_PUBLIC_HOST

// @ts-expect-error - env vars are readonly
env.NEXT_PUBLIC_HOST = "https://example.com"
expect(appHost()).toBe("https://example.com")

// cleanup
// @ts-expect-error - env vars are readonly
env.NEXT_PUBLIC_HOST = oldHost
})

test("appHost() can exclude the protocol", () => {
const oldHost = env.NEXT_PUBLIC_HOST

// @ts-expect-error - env vars are readonly
env.NEXT_PUBLIC_HOST = "https://example.com"
expect(appHost(false)).toBe("example.com")

// cleanup
// @ts-expect-error - env vars are readonly
env.NEXT_PUBLIC_HOST = oldHost
})

test("fullURL() returns a full URL by appending the path to the host", () => {
const oldHost = env.NEXT_PUBLIC_HOST

// @ts-expect-error - env vars are readonly
env.NEXT_PUBLIC_HOST = "https://example.com"
expect(fullURL("/path").toString()).toBe("https://example.com/path")

// cleanup
// @ts-expect-error - env vars are readonly
env.NEXT_PUBLIC_HOST = oldHost
})
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
"dependencies": {
"@hookform/resolvers": "^3.2.0",
"@next-auth/prisma-adapter": "^1.0.7",
"@next/mdx": "^13.4.16",
"@next/mdx": "^13.4.18",
"@prisma/client": "^5.1.1",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-toast": "^1.1.4",
"@react-email/components": "0.0.7",
"@t3-oss/env-nextjs": "^0.6.0",
"@t3-oss/env-nextjs": "^0.6.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"lucide-react": "^0.268.0",
"next": "^13.4.16",
"next": "^13.4.18",
"next-auth": "^4.23.1",
"next-themes": "^0.2.1",
"nextjs-google-analytics": "^2.3.3",
Expand All @@ -57,9 +57,9 @@
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.4.0",
"autoprefixer": "^10.4.15",
"dotenv-cli": "^7.2.1",
"dotenv-cli": "^7.3.0",
"eslint": "^8.47.0",
"eslint-config-next": "^13.4.16",
"eslint-config-next": "^13.4.18",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-tailwindcss": "^3.13.0",
Expand Down
Loading

1 comment on commit 6821d7f

@vercel
Copy link

@vercel vercel bot commented on 6821d7f Aug 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.