The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Switch to app router edge runtime
Steven Tey10685f9e04ae
diff --git a/apps/web/app/api/edge/metatags/route-wip.ts b/apps/web/app/api/edge/metatags/route-wip.tsnew file mode 100644index 0000000000..1a00e96a66--- /dev/null+++ b/apps/web/app/api/edge/metatags/route-wip.ts@@ -0,0 +1,48 @@+import { ratelimit } from "@/lib/upstash";+import { LOCALHOST_IP, isValidUrl } from "@dub/utils";+import { ipAddress } from "@vercel/edge";+import { getToken } from "next-auth/jwt";+import { NextFetchEvent, NextRequest } from "next/server";+import { getMetaTags } from "./utils";++export const runtime = "edge";++// TODO: waitUntil() is not supported in App Router yet: https://vercel.com/docs/functions/edge-functions/edge-functions-api#waituntil+export async function GET(req: NextRequest, ev: NextFetchEvent) {+ const url = req.nextUrl.searchParams.get("url");+ if (!url || !isValidUrl(url)) {+ return new Response("Invalid URL", { status: 400 });+ }++ // Rate limit if user is not logged in+ const session = await getToken({+ req,+ secret: process.env.NEXTAUTH_SECRET,+ });+ if (!session?.email) {+ const ip = ipAddress(req) || LOCALHOST_IP;+ const { success } = await ratelimit().limit(ip);+ if (!success) {+ return new Response("Don't DDoS me pls 🥺", { status: 429 });+ }+ }++ const metatags = await getMetaTags(url, ev);+ return new Response(JSON.stringify(metatags), {+ status: 200,+ headers: {+ "Content-Type": "application/json",+ "Access-Control-Allow-Origin": "*",+ },+ });+}++export function OPTIONS() {+ return new Response(null, {+ status: 204,+ headers: {+ "Access-Control-Allow-Origin": "*",+ "Access-Control-Allow-Methods": "GET, OPTIONS",+ },+ });+}diff --git a/apps/web/app/api/edge/metatags/utils.ts b/apps/web/app/api/edge/metatags/utils.tsnew file mode 100644index 0000000000..a32b866978--- /dev/null+++ b/apps/web/app/api/edge/metatags/utils.ts@@ -0,0 +1,111 @@+import { parse } from "node-html-parser";+import { recordMetatags } from "@/lib/upstash";+import { isValidUrl } from "@dub/utils";+import { NextFetchEvent } from "next/server";++export const getHtml = async (url: string) => {+ try {+ const controller = new AbortController();+ const timeoutId = setTimeout(() => controller.abort(), 5000); // timeout if it takes longer than 5 seconds+ const response = await fetch(url, {+ signal: controller.signal,+ headers: {+ "User-Agent": "dub-bot/1.0",+ },+ });+ clearTimeout(timeoutId);+ return await response.text();+ } catch (error) {+ if (error.name === "AbortError") {+ // Handle fetch request abort (e.g., due to timeout)+ console.error("Fetch request aborted due to timeout.");+ } else {+ // Handle other fetch errors+ console.error("Fetch request failed:", error);+ }+ return null;+ }+};++export const getHeadChildNodes = (html) => {+ const ast = parse(html); // parse the html into AST format with node-html-parser+ const metaTags = ast.querySelectorAll("meta").map(({ attributes }) => {+ const property = attributes.property || attributes.name || attributes.href;+ return {+ property,+ content: attributes.content,+ };+ });+ const title = ast.querySelector("title")?.innerText;+ const linkTags = ast.querySelectorAll("link").map(({ attributes }) => {+ const { rel, href } = attributes;+ return {+ rel,+ href,+ };+ });++ return { metaTags, title, linkTags };+};++export const getRelativeUrl = (url: string, imageUrl: string) => {+ if (!imageUrl) {+ return null;+ }+ if (isValidUrl(imageUrl)) {+ return imageUrl;+ }+ const { protocol, host } = new URL(url);+ const baseURL = `${protocol}//${host}`;+ return new URL(imageUrl, baseURL).toString();+};++export const getMetaTags = async (url: string, ev?: NextFetchEvent) => {+ const html = await getHtml(url);+ if (!html) {+ return {+ title: url,+ description: "No description",+ image: null,+ };+ }+ const { metaTags, title: titleTag, linkTags } = getHeadChildNodes(html);++ let object = {};++ for (let k in metaTags) {+ let { property, content } = metaTags[k];++ property && (object[property] = content);+ }++ for (let m in linkTags) {+ let { rel, href } = linkTags[m];++ rel && (object[rel] = href);+ }++ const title = object["og:title"] || object["twitter:title"] || titleTag;++ const description =+ object["description"] ||+ object["og:description"] ||+ object["twitter:description"];++ const image =+ object["og:image"] ||+ object["twitter:image"] ||+ object["image_src"] ||+ object["icon"] ||+ object["shortcut icon"];++ ev?.waitUntil(+ recordMetatags(url, title && description && image ? false : true),+ );++ return {+ title: title || url,+ description: description || "No description",+ image: getRelativeUrl(url, image),+ };+};diff --git a/apps/web/app/api/edge/stats/[endpoint]/route.ts b/apps/web/app/api/edge/stats/[endpoint]/route.tsindex a9eb48edf5..5e55e4577f 100644--- a/apps/web/app/api/edge/stats/[endpoint]/route.ts+++ b/apps/web/app/api/edge/stats/[endpoint]/route.ts@@ -7,8 +7,7 @@ import { LOCALHOST_IP } from "@dub/utils";import { ipAddress } from "@vercel/edge";import { NextResponse, type NextRequest } from "next/server";-// TODO: switch to 'edge' after https://github.com/vercel/next.js/issues/48295 is fixed-// export const runtime = "edge";+export const runtime = "edge";export const GET = async (req: NextRequest,diff --git a/apps/web/app/api/route.ts b/apps/web/app/api/route.tsindex a3f0b2c13f..f95114d11d 100644--- a/apps/web/app/api/route.ts+++ b/apps/web/app/api/route.ts@@ -1,8 +1,7 @@import { NextResponse } from "next/server";import { OpenAPIV3 } from "openapi-types";-// TODO: switch to 'edge' after https://github.com/vercel/next.js/issues/48295 is fixed-// export const runtime = "edge";+export const runtime = "edge";export function GET(): NextResponse<OpenAPIV3.Document> {return NextResponse.json({diff --git a/apps/web/app/rewrite/[url]/page.tsx b/apps/web/app/rewrite/[url]/page.tsxindex 514a602ec0..f8fc06caee 100644--- a/apps/web/app/rewrite/[url]/page.tsx+++ b/apps/web/app/rewrite/[url]/page.tsx@@ -1,9 +1,9 @@-import { getMetaTags } from "@/pages/api/edge/metatags";import {GOOGLE_FAVICON_URL,constructMetadata,getApexDomain,} from "@dub/utils";+import { getMetaTags } from "app/api/edge/metatags/utils";export const runtime = "edge";diff --git a/apps/web/lib/tinybird.ts b/apps/web/lib/tinybird.tsindex ee6250e6e4..85fda0bd18 100644--- a/apps/web/lib/tinybird.ts+++ b/apps/web/lib/tinybird.ts@@ -75,7 +75,6 @@ export async function recordClick({).then((res) => res.json()),// increment the click count for the link if key is specified (not root click)// also increment the usage count for the project, and then we have a cron that will reset it at the start of new billing cycle- // TODO: might wanna include root clicks in the usage count as well?...(conn? [keydiff --git a/apps/web/lib/upstash.ts b/apps/web/lib/upstash.tsindex 08ad5057a9..37e2473b2c 100644--- a/apps/web/lib/upstash.ts+++ b/apps/web/lib/upstash.ts@@ -1,4 +1,4 @@-import { nanoid } from "@dub/utils";+import { getDomainWithoutWWW, nanoid } from "@dub/utils";import { Ratelimit } from "@upstash/ratelimit";import { Redis } from "@upstash/redis";@@ -8,6 +8,17 @@ export const redis = new Redis({token: process.env.UPSTASH_REDIS_REST_TOKEN || "",});+export const ratelimitRedis = new Redis({+ url:+ process.env.RATELIMIT_UPSTASH_REDIS_REST_URL ||+ process.env.UPSTASH_REDIS_REST_URL ||+ "",+ token:+ process.env.RATELIMIT_UPSTASH_REDIS_REST_TOKEN ||+ process.env.UPSTASH_REDIS_REST_TOKEN ||+ "",+});+// Create a new ratelimiter, that allows 10 requests per 10 seconds by defaultexport const ratelimit = (requests: number = 10,@@ -19,16 +30,7 @@ export const ratelimit = (| `${number} d` = "10 s",) => {return new Ratelimit({- redis: new Redis({- url:- process.env.RATELIMIT_UPSTASH_REDIS_REST_URL ||- process.env.UPSTASH_REDIS_REST_URL ||- "",- token:- process.env.RATELIMIT_UPSTASH_REDIS_REST_TOKEN ||- process.env.UPSTASH_REDIS_REST_TOKEN ||- "",- }),+ redis: ratelimitRedis,limiter: Ratelimit.slidingWindow(requests, seconds),analytics: true,prefix: "dub",@@ -67,9 +69,12 @@ export async function recordMetatags(url: string, error: boolean) {if (url === "https://github.com/steven-tey/dub") {// don't log metatag generation for default URLreturn null;- } else {- return await redis.lpush(error ? "metatags-errors" : "metatags", {- url,- });}++ if (error) {+ return await ratelimitRedis.zincrby("metatags-error-zset", 1, url);+ }++ const domain = getDomainWithoutWWW(url);+ return await ratelimitRedis.zincrby("metatags-zset", 1, domain);}diff --git a/apps/web/package.json b/apps/web/package.jsonindex c179a29224..f972c89b71 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -52,7 +52,7 @@"js-cookie": "^3.0.5","lucide-react": "^0.269.0","nanoid": "^5.0.1",- "next": "14.0.3-canary.8",+ "next": "14.0.4-canary.39","next-auth": "^4.24.4","node-html-parser": "^6.1.4","nodemailer": "^6.9.3",diff --git a/apps/web/pages/api/edge/metatags.ts b/apps/web/pages/api/edge/metatags.tsindex 573c672db9..63a7e76b3e 100644--- a/apps/web/pages/api/edge/metatags.ts+++ b/apps/web/pages/api/edge/metatags.ts@@ -1,9 +1,9 @@-import { ratelimit, recordMetatags } from "@/lib/upstash";+import { ratelimit } from "@/lib/upstash";import { LOCALHOST_IP, isValidUrl } from "@dub/utils";import { ipAddress } from "@vercel/edge";+import { getMetaTags } from "app/api/edge/metatags/utils";import { getToken } from "next-auth/jwt";import { NextFetchEvent, NextRequest } from "next/server";-import { parse } from "node-html-parser";export const config = {runtime: "edge",@@ -49,110 +49,3 @@ export default async function handler(req: NextRequest, ev: NextFetchEvent) {return new Response(`Method ${req.method} Not Allowed`, { status: 405 });}}--const getHtml = async (url: string) => {- try {- const controller = new AbortController();- const timeoutId = setTimeout(() => controller.abort(), 5000); // timeout if it takes longer than 5 seconds- const response = await fetch(url, {- signal: controller.signal,- headers: {- "User-Agent": "dub-bot/1.0",- },- });- clearTimeout(timeoutId);- return await response.text();- } catch (error) {- if (error.name === "AbortError") {- // Handle fetch request abort (e.g., due to timeout)- console.error("Fetch request aborted due to timeout.");- } else {- // Handle other fetch errors- console.error("Fetch request failed:", error);- }- return null;- }-};--const getHeadChildNodes = (html) => {- const ast = parse(html); // parse the html into AST format with node-html-parser- const metaTags = ast.querySelectorAll("meta").map(({ attributes }) => {- const property = attributes.property || attributes.name || attributes.href;- return {- property,- content: attributes.content,- };- });- const title = ast.querySelector("title")?.innerText;- const linkTags = ast.querySelectorAll("link").map(({ attributes }) => {- const { rel, href } = attributes;- return {- rel,- href,- };- });-- return { metaTags, title, linkTags };-};--const getRelativeUrl = (url: string, imageUrl: string) => {- if (!imageUrl) {- return null;- }- if (isValidUrl(imageUrl)) {- return imageUrl;- }- const { protocol, host } = new URL(url);- const baseURL = `${protocol}//${host}`;- return new URL(imageUrl, baseURL).toString();-};--export const getMetaTags = async (url: string, ev?: NextFetchEvent) => {- const html = await getHtml(url);- if (!html) {- return {- title: url,- description: "No description",- image: null,- };- }- const { metaTags, title: titleTag, linkTags } = getHeadChildNodes(html);-- let object = {};-- for (let k in metaTags) {- let { property, content } = metaTags[k];-- property && (object[property] = content);- }-- for (let m in linkTags) {- let { rel, href } = linkTags[m];-- rel && (object[rel] = href);- }-- const title = object["og:title"] || object["twitter:title"] || titleTag;-- const description =- object["description"] ||- object["og:description"] ||- object["twitter:description"];-- const image =- object["og:image"] ||- object["twitter:image"] ||- object["image_src"] ||- object["icon"] ||- object["shortcut icon"];-- ev?.waitUntil(- recordMetatags(url, title && description && image ? false : true),- );-- return {- title: title || url,- description: description || "No description",- image: getRelativeUrl(url, image),- };-};diff --git a/apps/web/scripts/lua-convert.ts b/apps/web/scripts/lua-convert.tsnew file mode 100644index 0000000000..0d43a110cc--- /dev/null+++ b/apps/web/scripts/lua-convert.ts@@ -0,0 +1,26 @@+import "dotenv-flow/config";+import { redis } from "./utils";++async function main() {+ const script = `+local list_key = KEYS[1]+local sorted_set_key = KEYS[2]++local list_length = 50++local output = {}++for i = 1, list_length do+ local json_item = redis.call('LINDEX', list_key, i - 1)++ table.insert(output, json_item)+end++return output`;++ const response = await redis.eval(script, ["metatags, metatags-set"], []);++ console.log(response);+}++main();diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 9bcf33cef4..c1cca2aecb 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -155,11 +155,11 @@ importers:specifier: ^5.0.1version: 5.0.1next:- specifier: 14.0.3-canary.8- version: 14.0.3-canary.8(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])+ specifier: 14.0.4-canary.39+ version: 14.0.4-canary.39(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])next-auth:specifier: ^4.24.4node-html-parser:specifier: ^6.1.4version: 6.1.4@@ -462,11 +462,11 @@ importers:specifier: ^5.0.1version: 5.0.1next:- specifier: 14.0.3-canary.8- version: 14.0.3-canary.8(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])+ specifier: 14.0.4-canary.39+ version: 14.0.4-canary.39(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])next-auth:specifier: ^4.24.4node-html-parser:specifier: ^6.1.4version: 6.1.4@@ -4400,7 +4400,7 @@ packages:next-auth: ^4dependencies:'@prisma/client': 5.2.0([email protected])dev: false/@next/[email protected]:@@ -4411,8 +4411,8 @@ packages:resolution: {integrity: sha512-LGegJkMvRNw90WWphGJ3RMHMVplYcOfRWf2Be3td3sUa+1AaxmsYyANsA+znrGCBjXJNi4XAQlSoEfUxs/4kIQ==}dev: true- /@next/[email protected]:- resolution: {integrity: sha512-Tubnz+q0OAjsgSjIUVLdrIxrlN9+eOiDNdBxd/ZW7/lyU0rtVhuLXz6I1uDRnJfLGsFIjoTJBuWALa+emwpZMQ==}+ /@next/[email protected]:+ resolution: {integrity: sha512-ZqegVCldKlCtPCNCfkonnaoXJe5dQ/18bXOMXq+ry2O+2kPYuR6E2a8222hqc2h2PALqiWBx9jupQbti8Qu6SA==}dev: false/@next/[email protected]:@@ -4457,8 +4457,8 @@ packages:dev: trueoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-d7cte6sGCpT2v8pQgQwlsqjD12bopAvb2Phbh/1GILy4OMxzS1v16Z9CIpnRrKt7iaWkghx6hEIwvLL0rp03HA==}+ /@next/[email protected]:+ resolution: {integrity: sha512-krnVNhQt6G26mFzN9qh7dahTmkUWH9PObU9FajrJjzaUHorLiPQ+FHq9nvsQ2IfzQdI7uzYysCFLM/ey7vpAKw==}engines: {node: '>= 10'}cpu: [arm64]os: [darwin]@@ -4484,8 +4484,8 @@ packages:dev: trueoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-6gOFPqn/7UHVU1xoel1lHHGmmbcbZkXk/4+BmGq15Ylu8DRpF3bV6juNW7Bbt6aR/YDG6s5K4qwCv3nK3BhMQA==}+ /@next/[email protected]:+ resolution: {integrity: sha512-NxcI8uzH0TEtHebdqjYN2yX7qjkwGJvFHUWYWKBs1cqbTJ7YlBw1bTeZRiInqAzCdqNv68WJmglX30nG7s6Tvw==}engines: {node: '>= 10'}cpu: [x64]os: [darwin]@@ -4529,8 +4529,8 @@ packages:dev: trueoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-SDmh5J8NuLZusqrtTRvqjH+eJNb05Gp8WXiMWX+goq0eHcyFjYRFQl9R84NxpJjune9xV/fLfpGvxCawZqnBhQ==}+ /@next/[email protected]:+ resolution: {integrity: sha512-8bGz2dLVBarTqaDWbe/81tIzcGdV9IZ+btOIcRbDEGpr0zhfeaPxQtlX/Mh8fUByaqHdHePhe13p/lo34yisRg==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]@@ -4556,8 +4556,8 @@ packages:dev: trueoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-TuIJ/RhPsmruaX0Zc0LNuy+fO20v5J6VC91KOTHuLXmbTi/X/J2vJtyY+xey9hwMTDaw5pGoq/BbX/0nBT6Emg==}+ /@next/[email protected]:+ resolution: {integrity: sha512-le3J4hftNSF6TIsr7YnXK+DP2o66dSSQ+X5Ess9YhIwuouSnnOvp2o2dCXlV4K45R7Qshnn/pqQDfXjnGKcJKg==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]@@ -4583,8 +4583,8 @@ packages:dev: trueoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-wkwBEJ0jrwcNwKVDaXwslmeCISfgFnHznK+yhMDx4qEO7v7vHsr5ccCOKYKDB76lT+jRrzhLvfFmZbBD1ZPTYw==}+ /@next/[email protected]:+ resolution: {integrity: sha512-GEE+y3KP6HxRi5McOjFZzPpnnXiMc3XwrFUO+RIaU6PtTB+83Y5ePlAQNAL0htUTNrqS/IvKPtqxy4Wa4CVm1w==}engines: {node: '>= 10'}cpu: [x64]os: [linux]@@ -4610,8 +4610,8 @@ packages:dev: trueoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-oLVmk8SpjdC4qIxrWWjMeUe/BDn5IUzHUjm1tLAu8T+P9vnmbgoHCg/kgRRfbaRFUSCU9EWAbVQhABbxUCxkrA==}+ /@next/[email protected]:+ resolution: {integrity: sha512-QtHuF5nCV0f93trF2R1+envIDbXk/94kuOB70B9PeHUcHeNg9wXlAvg90fHQb0I7YPxgnyd3my/thPMMA9+8hQ==}engines: {node: '>= 10'}cpu: [x64]os: [linux]@@ -4637,8 +4637,8 @@ packages:dev: trueoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-OQc6jBOB1KFUdEHAwgIKv4+9lFtTg93nUH1IuSD0naRvetQeSwWrBIH1iAzJ39gntA/OGJYJh3z7xhH4eNv24A==}+ /@next/[email protected]:+ resolution: {integrity: sha512-dC0mm++siJwNnJnA0Vzjk5BJ9/INjkS8uJo7XviNaQOKNYB7//WOubiN/UGTgXZlClZ59wIFG+m/X523cgBgsQ==}engines: {node: '>= 10'}cpu: [arm64]os: [win32]@@ -4664,8 +4664,8 @@ packages:dev: trueoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-BvviIeWVBiVhaUHPSRS2PMDzRD+tvSlxlZeXrwD+Ryv4efEGBGy/7q9AqAr/smhDTCUszHKtYFtGr7Q1kJ8oug==}+ /@next/[email protected]:+ resolution: {integrity: sha512-voDSDBrSlYunkTnqPnugnaP30Y5xC4h0vMKe/ATC5jA7Ho8ADNKJAPJjQ9bestA6EdW7yLNaJ6sE/tKGlPMd9w==}engines: {node: '>= 10'}cpu: [ia32]os: [win32]@@ -4691,8 +4691,8 @@ packages:dev: trueoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-zJBWQi38pRQ8VLiwseTx8IIpYkxalcmL/GZAEZBBj4hu9QCxD9Iw+wAEbvWV5z15ZFYyXTy0Km7iSkoQTPNAfw==}+ /@next/[email protected]:+ resolution: {integrity: sha512-RAopWdU/gv0Hkp+xT83qXwFy1vtNMfYBZcpj8/Fq0AwD01/MlZqXgZVrvyUCg+5SU3hWeUhfm1NIECo1maALKg==}engines: {node: '>= 10'}cpu: [x64]os: [win32]@@ -13349,7 +13349,7 @@ packages:resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}dev: falseresolution: {integrity: sha512-5DGffi+OpkbU62vPQIJ1z+hFnmow+ec5Qrn9m6eoglIO51m0DlrmLxBduZEwKAYDEg9k2joi1yelgmq1vqK3aQ==}peerDependencies:next: ^12.2.5 || ^13 || ^14@@ -13364,7 +13364,7 @@ packages:'@panva/hkdf': 1.1.1cookie: 0.5.0jose: 4.15.4- next: 14.0.3-canary.8(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])+ next: 14.0.4-canary.39(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])nodemailer: 6.9.3oauth: 0.9.15openid-client: 5.6.1@@ -13502,8 +13502,8 @@ packages:- babel-plugin-macrosdev: true- /[email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]):- resolution: {integrity: sha512-O3qZSynha8RCO+fdhtk0Au/8gmiqDIZvx3yRQ+BtVvQBVkLjZh7onpc4zDBE9vk33Xv5NjGZG0Y7CtvP3SODzA==}+ /[email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-OX0eHwddKlJRVs2nHWFu1ClheRRFesg6KF4+IekiEFLKdBu9LePIKOgTrLGNixDizpG4YmSGmIt2YYp0F0CNDg==}engines: {node: '>=18.17.0'}hasBin: truepeerDependencies:@@ -13517,33 +13517,34 @@ packages:sass:optional: truedependencies:- '@next/env': 14.0.3-canary.8+ '@next/env': 14.0.4-canary.39'@opentelemetry/api': 1.4.1'@swc/helpers': 0.5.2busboy: 1.6.0caniuse-lite: 1.0.30001546+ graceful-fs: 4.2.11postcss: 8.4.31react: 18.2.0react-dom: 18.2.0([email protected])styled-jsx: 5.1.1(@babel/[email protected])([email protected])watchpack: 2.4.0optionalDependencies:- '@next/swc-darwin-arm64': 14.0.3-canary.8- '@next/swc-darwin-x64': 14.0.3-canary.8- '@next/swc-linux-arm64-gnu': 14.0.3-canary.8- '@next/swc-linux-arm64-musl': 14.0.3-canary.8- '@next/swc-linux-x64-gnu': 14.0.3-canary.8- '@next/swc-linux-x64-musl': 14.0.3-canary.8- '@next/swc-win32-arm64-msvc': 14.0.3-canary.8- '@next/swc-win32-ia32-msvc': 14.0.3-canary.8- '@next/swc-win32-x64-msvc': 14.0.3-canary.8+ '@next/swc-darwin-arm64': 14.0.4-canary.39+ '@next/swc-darwin-x64': 14.0.4-canary.39+ '@next/swc-linux-arm64-gnu': 14.0.4-canary.39+ '@next/swc-linux-arm64-musl': 14.0.4-canary.39+ '@next/swc-linux-x64-gnu': 14.0.4-canary.39+ '@next/swc-linux-x64-musl': 14.0.4-canary.39+ '@next/swc-win32-arm64-msvc': 14.0.4-canary.39+ '@next/swc-win32-ia32-msvc': 14.0.4-canary.39+ '@next/swc-win32-x64-msvc': 14.0.4-canary.39transitivePeerDependencies:- '@babel/core'- babel-plugin-macrosdev: false- /[email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]):- resolution: {integrity: sha512-O3qZSynha8RCO+fdhtk0Au/8gmiqDIZvx3yRQ+BtVvQBVkLjZh7onpc4zDBE9vk33Xv5NjGZG0Y7CtvP3SODzA==}+ /[email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-OX0eHwddKlJRVs2nHWFu1ClheRRFesg6KF4+IekiEFLKdBu9LePIKOgTrLGNixDizpG4YmSGmIt2YYp0F0CNDg==}engines: {node: '>=18.17.0'}hasBin: truepeerDependencies:@@ -13557,26 +13558,27 @@ packages:sass:optional: truedependencies:- '@next/env': 14.0.3-canary.8+ '@next/env': 14.0.4-canary.39'@opentelemetry/api': 1.4.1'@swc/helpers': 0.5.2busboy: 1.6.0caniuse-lite: 1.0.30001546+ graceful-fs: 4.2.11postcss: 8.4.31react: 18.2.0react-dom: 18.2.0([email protected])styled-jsx: 5.1.1(@babel/[email protected])([email protected])watchpack: 2.4.0optionalDependencies:- '@next/swc-darwin-arm64': 14.0.3-canary.8- '@next/swc-darwin-x64': 14.0.3-canary.8- '@next/swc-linux-arm64-gnu': 14.0.3-canary.8- '@next/swc-linux-arm64-musl': 14.0.3-canary.8- '@next/swc-linux-x64-gnu': 14.0.3-canary.8- '@next/swc-linux-x64-musl': 14.0.3-canary.8- '@next/swc-win32-arm64-msvc': 14.0.3-canary.8- '@next/swc-win32-ia32-msvc': 14.0.3-canary.8- '@next/swc-win32-x64-msvc': 14.0.3-canary.8+ '@next/swc-darwin-arm64': 14.0.4-canary.39+ '@next/swc-darwin-x64': 14.0.4-canary.39+ '@next/swc-linux-arm64-gnu': 14.0.4-canary.39+ '@next/swc-linux-arm64-musl': 14.0.4-canary.39+ '@next/swc-linux-x64-gnu': 14.0.4-canary.39+ '@next/swc-linux-x64-musl': 14.0.4-canary.39+ '@next/swc-win32-arm64-msvc': 14.0.4-canary.39+ '@next/swc-win32-ia32-msvc': 14.0.4-canary.39+ '@next/swc-win32-x64-msvc': 14.0.4-canary.39transitivePeerDependencies:- '@babel/core'- babel-plugin-macros