Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Improve SEO - Add canonical links, robots.txt and sitemap.xml (#285)
Jakub Novák2e6532b9a229
diff --git a/apps/docs/src/app/layout.tsx b/apps/docs/src/app/layout.tsxindex 4dae62796..c8b468f02 100644--- a/apps/docs/src/app/layout.tsx+++ b/apps/docs/src/app/layout.tsx@@ -8,6 +8,7 @@ import { Layout } from '@/components/Layout'import '@/styles/tailwind.css'import { PostHogAnalytics } from '@/utils/usePostHog'import { Section } from '@/components/SectionProvider'+import Canonical from '@/components/Navigation/canonical'export const metadata: Metadata = {title: {@@ -41,6 +42,9 @@ export default async function RootLayout({ children }) {className="h-full"suppressHydrationWarning>+ <head>+ <Canonical />+ </head><body className="flex min-h-full bg-white antialiased dark:bg-zinc-900"><Providers><div className="w-full">diff --git a/apps/docs/src/app/sitemap.ts b/apps/docs/src/app/sitemap.tsnew file mode 100644index 000000000..e01797767--- /dev/null+++ b/apps/docs/src/app/sitemap.ts@@ -0,0 +1,52 @@+import { MetadataRoute } from 'next'+import fs from 'fs'+import path from 'path'++export default function sitemap(): MetadataRoute.Sitemap {+ const appDirectory = path.join(process.cwd(), 'src', 'app')+ const mdxFilePaths = getAllMdxFilePaths(appDirectory)+ const priority = 0.5++ const sitemap = mdxFilePaths+ .map((filePath) => {+ const pathname = path+ .relative(appDirectory, filePath)+ .replace(/\/page\.mdx$/, '')+ if (pathname === 'page.mdx') {+ return null+ }+ const url = `https://e2b.dev/docs/${pathname}`+ const lastModified = fs.statSync(filePath).mtime+ return {+ url,+ lastModified,+ priority,+ }+ })+ .filter(Boolean)++ sitemap.unshift({+ url: 'https://e2b.dev',+ lastModified: new Date(),+ priority: 1,+ })++ return sitemap+}++function getAllMdxFilePaths(directory: string): string[] {+ const fileNames = fs.readdirSync(directory)+ const filePaths = fileNames+ .map((fileName) => {+ const filePath = path.join(directory, fileName)+ const stat = fs.statSync(filePath)+ if (stat.isDirectory()) {+ return getAllMdxFilePaths(filePath)+ } else if (path.basename(filePath) === 'page.mdx') {+ return filePath+ }+ })+ .filter(Boolean)++ return Array.prototype.concat(...filePaths)+}diff --git a/apps/docs/src/components/Navigation/canonical.tsx b/apps/docs/src/components/Navigation/canonical.tsxnew file mode 100644index 000000000..7f4f6c77c--- /dev/null+++ b/apps/docs/src/components/Navigation/canonical.tsx@@ -0,0 +1,12 @@+'use client'++import { usePathname } from 'next/navigation'++export default function Canonical() {+ const pathname = usePathname()++ const pathWithoutTrailingSlash = pathname.endsWith('/') ? pathname.slice(0, -1) : pathname+ const canonicalUrl = 'https://e2b.dev' + pathWithoutTrailingSlash++ return <link rel="canonical" href={canonicalUrl} />+}diff --git a/apps/reverse-proxy/app/robots.ts b/apps/reverse-proxy/app/robots.tsnew file mode 100644index 000000000..e416d725d--- /dev/null+++ b/apps/reverse-proxy/app/robots.ts@@ -0,0 +1,11 @@+import { MetadataRoute } from 'next'++export default function robots(): MetadataRoute.Robots {+ return {+ rules: {+ userAgent: '*',+ allow: '/',+ },+ sitemap: 'https://e2b.dev/sitemap.xml',+ }+}diff --git a/apps/reverse-proxy/app/sitemap.ts b/apps/reverse-proxy/app/sitemap.tsnew file mode 100644index 000000000..c251d4330--- /dev/null+++ b/apps/reverse-proxy/app/sitemap.ts@@ -0,0 +1,105 @@+import { MetadataRoute } from 'next'+import { XMLParser } from 'fast-xml-parser'++type ChangeFrequency =+ | 'always'+ | 'hourly'+ | 'daily'+ | 'weekly'+ | 'monthly'+ | 'yearly'+ | 'never'++type FramerWebsite = {+ sitemapUrl: string+ lastModified?: string | Date+ changeFrequency?: ChangeFrequency+ priority?: number+}++const framerWebsites: FramerWebsite[] = [+ {+ sitemapUrl: 'https://e2b-landing-page.framer.website/sitemap.xml',+ priority: 1.0,+ changeFrequency: 'daily',+ },+ {+ sitemapUrl: 'https://e2b-blog.framer.website/sitemap.xml',+ priority: 0.9,+ changeFrequency: 'daily',+ },+ {+ sitemapUrl: 'https://e2b-changelog.framer.website/sitemap.xml',+ priority: 0.2,+ changeFrequency: 'weekly',+ },+]++const otherApps = ['https://e2b.dev/docs/sitemap.xml']++type SitemapData = {+ loc: string+ lastmod?: string | Date+ changefreq?: ChangeFrequency+ priority?: number+}++type Sitemap = {+ urlset: {+ url: SitemapData | SitemapData[]+ }+}++async function getXmlData(url: string): Promise<Sitemap> {+ const parser = new XMLParser()++ const response = await fetch(url)+ const text = await response.text()++ return parser.parse(text) as Sitemap+}+async function getSitemap(+ url: string,+ priority?: number,+ changeFrequency?: ChangeFrequency+): Promise<MetadataRoute.Sitemap> {+ const data = await getXmlData(url)++ if (Array.isArray(data.urlset.url)) {+ return data.urlset.url.map((line) => {+ return {+ url: line.loc,+ priority: line?.priority || priority,+ changeFrequency: line?.changefreq || changeFrequency,+ }+ })+ } else {+ return [+ {+ url: data.urlset.url.loc,+ priority: data.urlset.url?.priority || priority,+ changeFrequency: data.urlset.url?.changefreq || changeFrequency,+ },+ ]+ }+}++export default async function sitemap(): Promise<MetadataRoute.Sitemap> {+ let mergedSitemap: MetadataRoute.Sitemap = []++ for (const nativeUrl of otherApps) {+ const urls = await getSitemap(nativeUrl)+ mergedSitemap = mergedSitemap.concat(...urls)+ }++ for (const framerWebsite of framerWebsites) {+ const urls = await getSitemap(+ framerWebsite.sitemapUrl,+ framerWebsite.priority,+ framerWebsite.changeFrequency+ )+ mergedSitemap = mergedSitemap.concat(...urls)+ }++ return mergedSitemap+}diff --git a/apps/reverse-proxy/middleware.ts b/apps/reverse-proxy/middleware.tsindex b39570466..15497ab58 100644--- a/apps/reverse-proxy/middleware.ts+++ b/apps/reverse-proxy/middleware.ts@@ -34,19 +34,29 @@ export async function middleware(req: NextRequest): Promise<NextResponse> {const htmlBody = await res.text()// !!! NOTE: Replace has intentionally not completed quotes to catch the rest of the path !!!- const modifiedHtmlBody = htmlBody- .replaceAll('href="https://e2b-landing-page.framer.website', 'href="https://e2b.dev')+ const modifiedHtmlBody = htmlBody.replaceAll(+ /href="https:\/\/e2b-[^"]*"/g,+ match => match.replace(/\/"$/, '"'),+ )+ .replaceAll(+ 'href="https://e2b-landing-page.framer.website',+ 'href="https://e2b.dev'+ ).replaceAll('href="https://e2b-blog.framer.website',// The default url on framer does not have /blog in the path but the custom domain does,// so we need to handle this explicitly.- url.pathname === '/' ? 'href="https://e2b.dev/blog' : 'href="https://e2b.dev',+ url.pathname === '/'+ ? 'href="https://e2b.dev/blog'+ : 'href="https://e2b.dev').replaceAll('href="https://e2b-changelog.framer.website',// The default url on framer does not have /changelog in the path but the custom domain does,// so we need to handle this explicitly.- url.pathname === '/' ? 'href="https://e2b.dev/changelog' : 'href="https://e2b.dev',+ url.pathname === '/'+ ? 'href="https://e2b.dev/changelog'+ : 'href="https://e2b.dev')return new NextResponse(modifiedHtmlBody, {@@ -59,5 +69,5 @@ export async function middleware(req: NextRequest): Promise<NextResponse> {// We should probably filter all /, /blog and /changelog paths here and decide what to do with them in the middleware body.export const config = {- matcher: ['/', '/blog/:path*', '/changelog/:path*'],+ matcher: ['/', '/blog/:path*', '/changelog/:path*', '/sitemap.xml'],}diff --git a/apps/reverse-proxy/package.json b/apps/reverse-proxy/package.jsonindex 2b268d2d4..a950cd928 100644--- a/apps/reverse-proxy/package.json+++ b/apps/reverse-proxy/package.json@@ -9,6 +9,7 @@"lint": "next lint"},"dependencies": {+ "fast-xml-parser": "^4.3.3","next": "latest","react": "latest","react-dom": "latest"diff --git a/apps/reverse-proxy/pages/.gitkeep b/apps/reverse-proxy/pages/.gitkeepdeleted file mode 100644index e69de29bb..000000000diff --git a/apps/reverse-proxy/tsconfig.json b/apps/reverse-proxy/tsconfig.jsonindex 90974037d..244548fa7 100644--- a/apps/reverse-proxy/tsconfig.json+++ b/apps/reverse-proxy/tsconfig.json@@ -22,15 +22,21 @@"./*"]},- "forceConsistentCasingInFileNames": true+ "forceConsistentCasingInFileNames": true,+ "plugins": [+ {+ "name": "next"+ }+ ]},"include": ["next-env.d.ts","**/*.ts","**/*.tsx",- "middleware.ts"+ "middleware.ts",+ ".next/types/**/*.ts"],"exclude": ["node_modules"]-}\ No newline at end of file+}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex b5bbe570a..51c3ce47a 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -208,9 +208,12 @@ importers:apps/reverse-proxy:dependencies:+ fast-xml-parser:+ specifier: ^4.3.3+ version: 4.3.3next:specifier: latest- version: 14.0.4([email protected])([email protected])+ version: 14.1.0([email protected])([email protected])react:specifier: latestversion: 18.2.0@@ -220,10 +223,10 @@ importers:devDependencies:'@types/node':specifier: latest- version: 20.10.5+ version: 20.11.5'@types/react':specifier: latest- version: 18.2.45+ version: 18.2.48'@types/react-dom':specifier: latestversion: 18.2.18@@ -1448,7 +1451,7 @@ packages:react: '>=16'dependencies:'@types/mdx': 2.0.8- '@types/react': 18.2.23+ '@types/react': 18.2.48react: 18.2.0dev: false@@ -1503,8 +1506,8 @@ packages:resolution: {integrity: sha512-RmHanbV21saP/6OEPBJ7yJMuys68cIf8OBBWd7+uj40LdpmswVAwe1uzeuFyUsd6SfeITWT3XnQfn6wULeKwDQ==}dev: false- /@next/[email protected]:- resolution: {integrity: sha512-irQnbMLbUNQpP1wcE5NstJtbuA/69kRfzBrpAD7Gsn8zm/CY6YQYc3HQBz8QPxwISG26tIm5afvvVbu508oBeQ==}+ /@next/[email protected]:+ resolution: {integrity: sha512-Py8zIo+02ht82brwwhTg36iogzFqGLPXlRGKQw5s+qP/kMNc4MAyDeEwBKDijk6zTIbegEgu8Qy7C1LboslQAw==}dev: false/@next/[email protected]:@@ -1538,8 +1541,8 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-mF05E/5uPthWzyYDyptcwHptucf/jj09i2SXBPwNzbgBNc+XnwzrL0U6BmPjQeOL+FiB+iG1gwBeq7mlDjSRPg==}+ /@next/[email protected]:+ resolution: {integrity: sha512-nUDn7TOGcIeyQni6lZHfzNoo9S0euXnu0jhsbMOmMJUBfgsnESdjN97kM7cBqQxZa8L/bM9om/S5/1dzCrW6wQ==}engines: {node: '>= 10'}cpu: [arm64]os: [darwin]@@ -1556,8 +1559,8 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-IZQ3C7Bx0k2rYtrZZxKKiusMTM9WWcK5ajyhOZkYYTCc8xytmwSzR1skU7qLgVT/EY9xtXDG0WhY6fyujnI3rw==}+ /@next/[email protected]:+ resolution: {integrity: sha512-1jgudN5haWxiAl3O1ljUS2GfupPmcftu2RYJqZiMJmmbBT5M1XDffjUtRUzP4W3cBHsrvkfOFdQ71hAreNQP6g==}engines: {node: '>= 10'}cpu: [x64]os: [darwin]@@ -1574,8 +1577,8 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-VwwZKrBQo/MGb1VOrxJ6LrKvbpo7UbROuyMRvQKTFKhNaXjUmKTu7wxVkIuCARAfiI8JpaWAnKR+D6tzpCcM4w==}+ /@next/[email protected]:+ resolution: {integrity: sha512-RHo7Tcj+jllXUbK7xk2NyIDod3YcCPDZxj1WLIYxd709BQ7WuRYl3OWUNG+WUfqeQBds6kvZYlc42NJJTNi4tQ==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]@@ -1592,8 +1595,8 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-8QftwPEW37XxXoAwsn+nXlodKWHfpMaSvt81W43Wh8dv0gkheD+30ezWMcFGHLI71KiWmHK5PSQbTQGUiidvLQ==}+ /@next/[email protected]:+ resolution: {integrity: sha512-v6kP8sHYxjO8RwHmWMJSq7VZP2nYCkRVQ0qolh2l6xroe9QjbgV8siTbduED4u0hlk0+tjS6/Tuy4n5XCp+l6g==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]@@ -1610,8 +1613,8 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-/s/Pme3VKfZAfISlYVq2hzFS8AcAIOTnoKupc/j4WlvF6GQ0VouS2Q2KEgPuO1eMBwakWPB1aYFIA4VNVh667A==}+ /@next/[email protected]:+ resolution: {integrity: sha512-zJ2pnoFYB1F4vmEVlb/eSe+VH679zT1VdXlZKX+pE66grOgjmKJHKacf82g/sWE4MQ4Rk2FMBCRnX+l6/TVYzQ==}engines: {node: '>= 10'}cpu: [x64]os: [linux]@@ -1628,8 +1631,8 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-m8z/6Fyal4L9Bnlxde5g2Mfa1Z7dasMQyhEhskDATpqr+Y0mjOBZcXQ7G5U+vgL22cI4T7MfvgtrM2jdopqWaw==}+ /@next/[email protected]:+ resolution: {integrity: sha512-rbaIYFt2X9YZBSbH/CwGAjbBG2/MrACCVu2X0+kSykHzHnYH5FjHxwXLkcoJ10cX0aWCEynpu+rP76x0914atg==}engines: {node: '>= 10'}cpu: [x64]os: [linux]@@ -1646,8 +1649,8 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-7Wv4PRiWIAWbm5XrGz3D8HUkCVDMMz9igffZG4NB1p4u1KoItwx9qjATHz88kwCEal/HXmbShucaslXCQXUM5w==}+ /@next/[email protected]:+ resolution: {integrity: sha512-o1N5TsYc8f/HpGt39OUQpQ9AKIGApd3QLueu7hXk//2xq5Z9OxmV6sQfNp8C7qYmiOlHYODOGqNNa0e9jvchGQ==}engines: {node: '>= 10'}cpu: [arm64]os: [win32]@@ -1664,8 +1667,8 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-zLeNEAPULsl0phfGb4kdzF/cAVIfaC7hY+kt0/d+y9mzcZHsMS3hAS829WbJ31DkSlVKQeHEjZHIdhN+Pg7Gyg==}+ /@next/[email protected]:+ resolution: {integrity: sha512-XXIuB1DBRCFwNO6EEzCTMHT5pauwaSj4SWs7CYnME57eaReAKBXCnkUE80p/pAZcewm7hs+vGvNqDPacEXHVkw==}engines: {node: '>= 10'}cpu: [ia32]os: [win32]@@ -1682,8 +1685,8 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-yEh2+R8qDlDCjxVpzOTEpBLQTEFAcP2A8fUFLaWNap9GitYKkKv1//y2S6XY6zsR4rCOPRpU7plYDR+az2n30A==}+ /@next/[email protected]:+ resolution: {integrity: sha512-9WEbVRRAqJ3YFVqEZIxUqkiO8l1nool1LmNxygr5HWF8AcSYsEpneUDhmjUVJEzO2A04+oPtZdombzzPPkTtgg==}engines: {node: '>= 10'}cpu: [x64]os: [win32]@@ -2903,8 +2906,8 @@ packages:/@types/[email protected]:resolution: {integrity: sha512-wf3Vz+jCmOQ2HV1YUJuCWdL64adYxumkrxtc+H1VUQlnQI04+5HtH+qZCOE21lBE7gIrt+CwX2Wv8Acrw5Ak6w==}- /@types/[email protected]:- resolution: {integrity: sha512-nNPsNE65wjMxEKI93yOP+NPGGBJz/PoN3kZsVLee0XMiJolxSekEVD8wRwBUBqkwc7UWop0edW50yrCQW4CyRw==}+ /@types/[email protected]:+ resolution: {integrity: sha512-g557vgQjUUfN76MZAN/dt1z3dzcUsimuysco0KeluHgrPdJXkP/XdAURgyO2W9fZWHRtRBiVKzKn8vyOAwlG+w==}dependencies:undici-types: 5.26.5dev: true@@ -2939,19 +2942,19 @@ packages:/@types/[email protected]:resolution: {integrity: sha512-TJxDm6OfAX2KJWJdMEVTwWke5Sc/E/RlnPGvGfS0W7+6ocy2xhDVQVh/KvC2Uf7kACs+gDytdusDSdWfWkaNzw==}dependencies:- '@types/react': 18.2.45+ '@types/react': 18.2.48dev: true/@types/[email protected]:resolution: {integrity: sha512-GRaAEriuT4zp9N4p1i8BDBYmEyfo+xQ3yHjJU4eiK5NDa1RmUZG+unZABUTK4/Ox/M+GaHwb6Ow8rUITrtjszA==}dependencies:- '@types/react': 18.2.28+ '@types/react': 18.2.48dev: false/@types/[email protected]:resolution: {integrity: sha512-KITBX3xzheQLu2s3bUgLmRE7ekmhc52zRjRTwkKayQARh30L4fjEGzGm7ULK9TuX2LgxWWavZqyQGDGjAHbL3w==}dependencies:- '@types/react': 18.2.23+ '@types/react': 18.2.48dev: false/@types/[email protected]:@@ -2962,29 +2965,12 @@ packages:csstype: 3.1.2dev: false- /@types/[email protected]:- resolution: {integrity: sha512-qHLW6n1q2+7KyBEYnrZpcsAmU/iiCh9WGCKgXvMxx89+TYdJWRjZohVIo9XTcoLhfX3+/hP0Pbulu3bCZQ9PSA==}+ /@types/[email protected]:+ resolution: {integrity: sha512-qboRCl6Ie70DQQG9hhNREz81jqC1cs9EVNcjQ1AU+jH6NFfSAhVVbrrY/+nSF+Bsk4AOwm9Qa61InvMCyV+H3w==}dependencies:'@types/prop-types': 15.7.6'@types/scheduler': 0.16.3csstype: 3.1.2- dev: false-- /@types/[email protected]:- resolution: {integrity: sha512-ad4aa/RaaJS3hyGz0BGegdnSRXQBkd1CCYDCdNjBPg90UUpLgo+WlJqb9fMYUxtehmzF3PJaTWqRZjko6BRzBg==}- dependencies:- '@types/prop-types': 15.7.6- '@types/scheduler': 0.16.3- csstype: 3.1.2- dev: false-- /@types/[email protected]:- resolution: {integrity: sha512-TtAxCNrlrBp8GoeEp1npd5g+d/OejJHFxS3OWmrPBMFaVQMSN0OFySozJio5BHxTuTeug00AVXVAjfDSfk+lUg==}- dependencies:- '@types/prop-types': 15.7.6- '@types/scheduler': 0.16.3- csstype: 3.1.2- dev: true/@types/[email protected]:resolution: {integrity: sha512-/4YQT5Kp6HxUDb4yhRkm0bJ7TbjvTddqX7PZ5hz6qV3pxSo72f/6YPRo+Mu2DU307tm9IioO69l7uAwn5XNcFA==}@@ -4124,6 +4110,10 @@ packages:resolution: {integrity: sha512-HWJnhnID+0YMtGlzcp3T9drmBJUVDchPJ08tpUGFLs9CYlwWPH2uLgpHn8fND5pCgXVtnGS3H4QR9XLMHVNkHw==}dev: false+ resolution: {integrity: sha512-u5AUVkixruKHJjw/pj9wISlcMpgFWzSrczLZbrqBSxukQixmg0SJ5sZTpvaFvxU0HoQKd4yoyAogyrAz9pzJnA==}+ dev: false+resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}dev: false@@ -5553,6 +5543,13 @@ packages:resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==}dev: true+ resolution: {integrity: sha512-coV/D1MhrShMvU6D0I+VAK3umz6hUaxxhL0yp/9RjfiYUfAv14rDhGQL+PLForhMdr0wq3PiV07WtkkNjJjNHg==}+ hasBin: true+ dependencies:+ strnum: 1.0.5+ dev: false+resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==}dependencies:@@ -6893,7 +6890,7 @@ packages:pretty-ms: 8.0.0strip-json-comments: 5.0.1summary: 2.1.0- typescript: 5.2.2+ typescript: 5.3.3zod: 3.22.2zod-validation-error: 1.5.0([email protected])dev: true@@ -8137,8 +8134,8 @@ packages:- babel-plugin-macrosdev: false- resolution: {integrity: sha512-qbwypnM7327SadwFtxXnQdGiKpkuhaRLE2uq62/nRul9cj9KhQ5LhHmlziTNqUidZotw/Q1I9OjirBROdUJNgA==}+ resolution: {integrity: sha512-wlzrsbfeSU48YQBjZhDzOwhWhGsy+uQycR8bHAOt1LY1bn3zZEcDyHQOEoN3aWzQ8LHCAJ1nqrWCc9XF2+O45Q==}engines: {node: '>=18.17.0'}hasBin: truepeerDependencies:@@ -8152,26 +8149,25 @@ packages:sass:optional: truedependencies:- '@next/env': 14.0.4+ '@next/env': 14.1.0'@swc/helpers': 0.5.2busboy: 1.6.0- caniuse-lite: 1.0.30001538+ caniuse-lite: 1.0.30001579graceful-fs: 4.2.11postcss: 8.4.31react: 18.2.0react-dom: 18.2.0([email protected])styled-jsx: 5.1.1([email protected])- watchpack: 2.4.0optionalDependencies:- '@next/swc-darwin-arm64': 14.0.4- '@next/swc-darwin-x64': 14.0.4- '@next/swc-linux-arm64-gnu': 14.0.4- '@next/swc-linux-arm64-musl': 14.0.4- '@next/swc-linux-x64-gnu': 14.0.4- '@next/swc-linux-x64-musl': 14.0.4- '@next/swc-win32-arm64-msvc': 14.0.4- '@next/swc-win32-ia32-msvc': 14.0.4- '@next/swc-win32-x64-msvc': 14.0.4+ '@next/swc-darwin-arm64': 14.1.0+ '@next/swc-darwin-x64': 14.1.0+ '@next/swc-linux-arm64-gnu': 14.1.0+ '@next/swc-linux-arm64-musl': 14.1.0+ '@next/swc-linux-x64-gnu': 14.1.0+ '@next/swc-linux-x64-musl': 14.1.0+ '@next/swc-win32-arm64-msvc': 14.1.0+ '@next/swc-win32-ia32-msvc': 14.1.0+ '@next/swc-win32-x64-msvc': 14.1.0transitivePeerDependencies:- '@babel/core'- babel-plugin-macros@@ -10113,6 +10109,10 @@ packages:acorn: 8.10.0dev: true+ resolution: {integrity: sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==}+ dev: false+resolution: {integrity: sha512-1JGpfPB3lo42ZX8cuPrheZbfQ6kqPPnPHlKMyeRYtfKD+0jG+QsXgXN57O/dvJlzlB2elI6dGmrPnl5VPQFPaA==}dependencies: