-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
chore: upgrade to next 15 #7155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 42 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
7c7e5c4
chore: upgrade to next 15
ovflowd 790c2a2
chore: fixed vars, next-intl, etc
ovflowd 6f1da68
chore: more build fixes
ovflowd 029d045
chore: fix dependencies
ovflowd 0a4c6f0
chore: some other issues on build
ovflowd e45a137
chore: fix unit tests
ovflowd a60057a
fix: Return `locale` in `i18n.tsx`, also move default there (#7157)
amannn 12cabbc
chore: more refactor and bug fixing
ovflowd 0c03028
chore: hydration warning
ovflowd 6b53127
chore: revert blog post
ovflowd 52d068f
fix: Read locale from params in layout (#7178)
amannn 958af21
wip nextjs@15 with storybook-webpack (#7203)
bmuenzenmeyer fa7dd6f
chore: minor changes to fix url() on css
ovflowd 0d69fa2
chore: thanks turbo repo!
ovflowd bb14619
chore: fix orama
ovflowd 1882fa4
chore: preview head
ovflowd 3c7ce24
chore: fix nodevu version
ovflowd 1688da5
chore: minor cleanups
ovflowd 0f85559
fix: minor feed fixes
ovflowd 3e1aff9
chore: fixed tests
ovflowd 9dc4b6c
chore: some package updates and minor code fixes
ovflowd 0f31695
chore: minor storybook fixes
ovflowd f973f57
Merge branch 'main' into chore/nextjs-15
ovflowd a757220
test: log to vercel
ovflowd c0534b3
chore: attempt to make it work with default
ovflowd 1a68031
chore: attempt to fix home
ovflowd d49e34a
chore: explicit JSON.parse call
ovflowd a55992b
Merge branch 'main' into chore/nextjs-15
ovflowd 8a63ebe
chore: config optimization
ovflowd 4392ff8
chore: bump nextjs
ovflowd e4bd6e4
chore: use otel/vercel; cache fetc; optimize build
ovflowd 0073ffd
chore: optimize packages
ovflowd 53bf63f
feat: partial custom mdx compiler
ovflowd 1b2f4cc
chore: attempt to fix next.15 build
ovflowd 7464e04
fix: fix navbar
ovflowd 2c82b97
chore: remove duplicated paths
ovflowd be8be47
fix: ignore empty pathname paths
ovflowd 12651a9
chore: remove changelog componnet, simply redirect to release page
ovflowd 0e0eeb4
chore: added inline docs
ovflowd 9b3290b
chore: og image default
ovflowd 0dc4e99
remove reference to unused tool
bmuenzenmeyer 5fbe3f9
move string to constant
bmuenzenmeyer 53b0d0a
Update apps/site/app/[locale]/next-data/og/[category]/[title]/route.tsx
bmuenzenmeyer 7aa6ea1
chore: remove existsSync
ovflowd 58215c5
chore: simplify fragments
ovflowd 1135f0b
infra: use sval to parse javascript instead of mdx's `evaluate` (#7233)
ovflowd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,4 @@ cache | |
# TypeScript | ||
tsconfig.tsbuildinfo | ||
|
||
# Sentry Config File | ||
.sentryclirc | ||
|
||
dist/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
|
||
<link | ||
rel="stylesheet" | ||
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=Open+Sans:ital,wght@0,300..800;1,300..800" | ||
/> | ||
|
||
<style> | ||
:root { | ||
color-scheme: light; | ||
|
||
--font-ibm-plex-mono: 'IBM Plex Mono'; | ||
--font-open-sans: 'Open Sans'; | ||
} | ||
|
||
html[data-theme='dark'] { | ||
color-scheme: dark; | ||
} | ||
</style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/** | ||
* This file extends on the `page.tsx` file, which is the default file that is used to render | ||
ovflowd marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* the entry points for each locale and then also reused within the [...path] route to render the | ||
* and contains all logic for rendering our dynamic and static routes within the Node.js Website. | ||
* | ||
* Note: that each `page.tsx` should have its own `generateStaticParams` to prevent clash of | ||
* dynamic params, which will lead on static export errors and other sort of issues. | ||
*/ | ||
|
||
import * as basePage from '@/app/[locale]/page'; | ||
import { ENABLE_STATIC_EXPORT } from '@/next.constants.mjs'; | ||
import { dynamicRouter } from '@/next.dynamic.mjs'; | ||
import { availableLocaleCodes } from '@/next.locales.mjs'; | ||
|
||
// This is the default Viewport Metadata | ||
// @see https://nextjs.org/docs/app/api-reference/functions/generate-viewport#generateviewport-function | ||
export const generateViewport = basePage.generateViewport; | ||
|
||
// This generates each page's HTML Metadata | ||
// @see https://nextjs.org/docs/app/api-reference/functions/generate-metadata | ||
export const generateMetadata = basePage.generateMetadata; | ||
|
||
// This provides all the possible paths that can be generated statically | ||
// + provides all the paths that we support on the Node.js Website | ||
export const generateStaticParams = async () => { | ||
const allAvailableRoutes = await Promise.all( | ||
// Gets all mapped routes to the Next.js Routing Engine by Locale | ||
availableLocaleCodes.map(async (locale: string) => { | ||
const routesForLanguage = await dynamicRouter.getRoutesByLanguage(locale); | ||
|
||
return routesForLanguage.map(pathname => | ||
dynamicRouter.mapPathToRoute(locale, pathname) | ||
); | ||
}) | ||
); | ||
|
||
return ENABLE_STATIC_EXPORT ? allAvailableRoutes.flat().sort() : []; | ||
}; | ||
|
||
// Enforces that this route is used as static rendering | ||
// Except whenever on the Development mode as we want instant-refresh when making changes | ||
// @see https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#dynamic | ||
export const dynamic = 'force-static'; | ||
|
||
// Ensures that this endpoint is invalidated and re-executed every X minutes | ||
// so that when new deployments happen, the data is refreshed | ||
// @see https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#revalidate | ||
export const revalidate = 300; | ||
ovflowd marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
export default basePage.default; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.