Skip to content
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

Next.js 15 migration + next.js 15 static first mdx tutorial #80

Merged
merged 363 commits into from
Jan 1, 2025
Merged
Changes from 1 commit
Commits
Show all changes
363 commits
Select commit Hold shift + click to select a range
61ac1b7
fix the mdx examples so that don't trigger linting, we add linting er…
chrisweb Dec 1, 2024
a37c7b3
it is crazy how much changed since the last nextjs and react versions…
chrisweb Dec 1, 2024
5a1c38c
add new linting debugging scripts
chrisweb Dec 2, 2024
f7a64f2
remove obsolete comments
chrisweb Dec 2, 2024
5577e69
add the mjs extension back in, safer this way, else people might wond…
chrisweb Dec 2, 2024
c7a72fc
adding some sentences to the introduction to better describe what sta…
chrisweb Dec 2, 2024
4526c5f
add react compiler plugin to eslint setup
chrisweb Dec 2, 2024
2268453
small fixes to finalize updated linting chapters
chrisweb Dec 2, 2024
07cb1a0
fix two linting problems
chrisweb Dec 2, 2024
ceab8b5
cleanup
chrisweb Dec 2, 2024
33bf96b
change to styling rules to warnings instead of errors (don't to block…
chrisweb Dec 2, 2024
ff09134
use the state instead of a ref as it gets accessed during rendering (…
chrisweb Dec 2, 2024
f4d9f8a
remove obsolete experiment
chrisweb Dec 2, 2024
95068f7
simplify camera code
chrisweb Dec 2, 2024
4f2175e
refactoring due to react compiler linting problem, moved code from th…
chrisweb Dec 3, 2024
d4b71c8
add styling and css page to static first tutorial
chrisweb Dec 3, 2024
1553bec
update dependencies
chrisweb Dec 3, 2024
cb10089
add the latest info to the next.js 15 chapter
chrisweb Dec 3, 2024
19b14b6
added a bunch of updates to the react 19 chapter
chrisweb Dec 3, 2024
00536f6
updated the two pages about: creation a navigation component which us…
chrisweb Dec 3, 2024
4768760
updated the nextjs 15 tutorial pages about optimizing our MDX pages b…
chrisweb Dec 3, 2024
2a1f8ce
change target to ES2017 (which is what next.js currently uses)
chrisweb Dec 5, 2024
24cb63d
adjust to previous page name change, improve heading text
chrisweb Dec 5, 2024
059ddf7
added two new chapters, the first one is an introduction about migrat…
chrisweb Dec 5, 2024
afab4f3
permalink fix
chrisweb Dec 5, 2024
26116b9
renamed the "next configuration" page to "next config"
chrisweb Dec 5, 2024
132f2fd
clarify that this is the Next.js 15 version
chrisweb Dec 5, 2024
38dd0aa
improve wording for some headings, fix next page link as it got renamed
chrisweb Dec 5, 2024
10bacb4
renamed the "next configuration" page to "next config"
chrisweb Dec 5, 2024
2da57ed
updating 3 more pages to next.js 15 (react 19)
chrisweb Dec 5, 2024
828b71e
add more sub chapters to improve readability, add a chapter about dif…
chrisweb Dec 5, 2024
e201364
improve introduction and update code examples to new config
chrisweb Dec 5, 2024
558cf05
update react
chrisweb Dec 6, 2024
4a05c51
fix archive chapter
chrisweb Dec 6, 2024
de02bbc
update dependencies
chrisweb Dec 6, 2024
29b4ed9
improve the types
chrisweb Dec 6, 2024
65f324c
add more suggestions for alternative tools, remove a chapter that is …
chrisweb Dec 6, 2024
e56e769
just clarified that csp is a header
chrisweb Dec 6, 2024
05892c3
renaming the folder, knowing it will break links but I also fixed the…
chrisweb Dec 6, 2024
5ff38e4
use other packages as examples this time
chrisweb Dec 6, 2024
95fc961
next.js 15 version of 3 more pages
chrisweb Dec 6, 2024
becf81a
make it clearer that it is dynamic per se, but generated at build tim…
chrisweb Dec 6, 2024
b88060b
nextjs15 version of the metadata (and opengraph) page
chrisweb Dec 6, 2024
bda3e91
adjust the title of new tutorial for og image alt
chrisweb Dec 7, 2024
4608437
react 19 stable release (+ types) update
chrisweb Dec 7, 2024
15b0e6e
fix allowed references list for tutorial
chrisweb Dec 7, 2024
35aee42
clarify what is on the allow list for "no undefined references" rule
chrisweb Dec 7, 2024
2a3fbf7
make tasklist a separate chapter, just like footnotes
chrisweb Dec 7, 2024
a28ce53
adjust table spaces as we added remark-gfm to linting plugins
chrisweb Dec 7, 2024
23d187a
add remark gfm to remark lint configuration
chrisweb Dec 7, 2024
ef47276
add chapter about gfm linting
chrisweb Dec 7, 2024
98ef107
add gfm to the example
chrisweb Dec 7, 2024
c400a39
fix gfm linting for autolink use cases by disabling no literal urls rule
chrisweb Dec 7, 2024
7436b99
add code explanation and fix footnote definition position
chrisweb Dec 7, 2024
04f9541
add tip about restarting linting process after the configuration update
chrisweb Dec 7, 2024
3c699be
update comment to better explain why trusted-types is excluded here
chrisweb Dec 7, 2024
fcca075
remove trusted-types but will add chapter to explain why and how to e…
chrisweb Dec 7, 2024
898d2c5
3 more done (nextjs 15 update) 2 to go
chrisweb Dec 7, 2024
cb30d52
clarify when to try to use the trusted-types directive
chrisweb Dec 7, 2024
74b3032
move some of the trusted types info from the tutorial(s) to the main …
chrisweb Dec 8, 2024
d949d8e
shorten the trusted types chapters of both pages and instead link to …
chrisweb Dec 8, 2024
ae1980d
last two pages of the next15 version of the tutorial
chrisweb Dec 8, 2024
9773cfb
spellchecking fixes
chrisweb Dec 8, 2024
881f08b
update drei
chrisweb Dec 8, 2024
d95ca0b
spellchecking
chrisweb Dec 8, 2024
f2767a9
fix the ref object type, formatting
chrisweb Dec 9, 2024
1725dd9
update dependencies
chrisweb Dec 9, 2024
84a0b2f
improve mdx-components types
chrisweb Dec 9, 2024
24678ee
fix the remark gfm configuration example, add types for mdx components
chrisweb Dec 9, 2024
4326806
add types for mdx components
chrisweb Dec 9, 2024
d5bdefe
linting fix table spaces
chrisweb Dec 9, 2024
5ca183f
formatting, make sure example URLs are not considered being links
chrisweb Dec 9, 2024
4e86ee2
remove old comment
chrisweb Dec 9, 2024
10da554
use suspense and make use of state
chrisweb Dec 9, 2024
f4b1ee7
Merge branch 'main' of https://github.com/chrisweb/chris.lu into next…
chrisweb Dec 9, 2024
69d4705
Merge pull request #79 from chrisweb/nextjs15_react19_eslint9
chrisweb Dec 9, 2024
23444e2
add changing prod port chapter
chrisweb Dec 9, 2024
392a9a7
fix typo
chrisweb Dec 9, 2024
6e17f22
fix typo
chrisweb Dec 9, 2024
0def660
unused file
chrisweb Dec 9, 2024
ee6631b
add missing dependency
chrisweb Dec 9, 2024
78d9d3c
use lint no cache for build script
chrisweb Dec 9, 2024
3f524dc
remove error boundary component
chrisweb Dec 9, 2024
377b2cb
ref can be null
chrisweb Dec 9, 2024
be1b530
lock update
chrisweb Dec 9, 2024
b8664ad
add check urls
chrisweb Dec 9, 2024
65b1c6f
fix use of remark cli
chrisweb Dec 9, 2024
8cbcfe9
update metadata permalink, breadcrumbs & pagination links
chrisweb Dec 9, 2024
49e0bae
fix link to previous tutorial, also mentioning it once is enough
chrisweb Dec 9, 2024
45a4511
unnecessary verbose
chrisweb Dec 9, 2024
e88f239
make it not sound like it is specific to nextjs 14
chrisweb Dec 9, 2024
b0ab270
mention that it is not just next 14 but also versions above too
chrisweb Dec 9, 2024
8f188b8
fix configuration page url
chrisweb Dec 9, 2024
c1aac8c
remove note which is already in the next config page
chrisweb Dec 9, 2024
a94bec8
use lint with no cache for builds
chrisweb Dec 9, 2024
1099f5e
move the source code chapter to the top
chrisweb Dec 10, 2024
897ad55
small wording update
chrisweb Dec 10, 2024
cbfceb1
update dependencies
chrisweb Dec 10, 2024
1470e56
update titles and fix few links
chrisweb Dec 10, 2024
25889c5
make the chapter about canary versions optional
chrisweb Dec 10, 2024
60b5660
improve title for clarity
chrisweb Dec 10, 2024
5433a86
rewrite intro, clarify contributing
chrisweb Dec 10, 2024
d3b7176
fix link
chrisweb Dec 10, 2024
5f41698
improve highlighting and code block title
chrisweb Dec 10, 2024
3804f0e
some text moved into wrong paragraph fixed
chrisweb Dec 10, 2024
7d986d3
clarify repo name choice
chrisweb Dec 10, 2024
13175ac
improve titles
chrisweb Dec 10, 2024
5a5e3d8
add missing line highlight
chrisweb Dec 10, 2024
d22609d
better explain the sentry and error logging code changes
chrisweb Dec 10, 2024
d8e8bf9
updating linting mdx page url
chrisweb Dec 10, 2024
ecab1c9
set check urls path back to default
chrisweb Dec 10, 2024
34b2379
add dead or alive options to try to lower failed localhost fetches
chrisweb Dec 11, 2024
9dbd994
nextjs 15.1 🎉
chrisweb Dec 11, 2024
4a1035e
condense install and use sentry wizard chapters, update nextjs versio…
chrisweb Dec 11, 2024
a89f47a
add second nextjs turbopack error when using typed routes
chrisweb Dec 11, 2024
02a7b60
move sentry component annotation problems list to the sentry post to …
chrisweb Dec 11, 2024
5f649a1
fix path when using fetch, on windows it needs to be relative or abso…
chrisweb Dec 11, 2024
36b65ae
add more information about sentry and turbopack not being bff (yet)
chrisweb Dec 12, 2024
9f33ad3
update the turbopack chapter with new information now that nextjs 15.…
chrisweb Dec 12, 2024
4bcbc8e
add a new turbopack chapter to clarify that previous versions did not…
chrisweb Dec 12, 2024
3db4db2
update nodejs "engines" version
chrisweb Dec 12, 2024
5602496
update sentry, have a prod deploy problem
chrisweb Dec 12, 2024
1de42ea
update nextjs version
chrisweb Dec 12, 2024
8aeef1a
set the engine to 22 and let Vercel chose the exact version
chrisweb Dec 12, 2024
d67dbc6
putting engines back to what they were yesterday: >=20.11.0, lets see…
chrisweb Dec 12, 2024
afd2cb6
update the readme to reflect packages updates
chrisweb Dec 12, 2024
7b4489a
update nextjs canary (& sentry sdk)
chrisweb Dec 13, 2024
1b74baf
update description
chrisweb Dec 13, 2024
6ad8b94
vercel does not seem to like me adding sharp to dev deps
chrisweb Dec 13, 2024
fdae352
just a cleanup while I'm stuck trying to find out why sharp fails to …
chrisweb Dec 13, 2024
33c17dd
remove unused tracesSampleRate
chrisweb Dec 13, 2024
a783473
formatting
chrisweb Dec 14, 2024
621977d
try previous nextjs version because of deployment problem (this build…
chrisweb Dec 14, 2024
f23b21a
minor text fixes, add link to official docs in introduction
chrisweb Dec 14, 2024
78cb0dd
remove old rc eslint
chrisweb Dec 14, 2024
f6af0f5
add missing link to documentation
chrisweb Dec 14, 2024
19520ce
improve the performance info when using projectService
chrisweb Dec 14, 2024
09c32fe
add side note about early release of flat config for eslint-mdx package
chrisweb Dec 14, 2024
b3f4567
split eslint and typescript eslint into two pages to make it more rea…
chrisweb Dec 14, 2024
81f6550
note to self
chrisweb Dec 14, 2024
8f443db
add correct inspector link
chrisweb Dec 14, 2024
943fb7f
use github repo as it is a mono repo with more than just this package…
chrisweb Dec 14, 2024
73089fe
clarify and add sources to static rendering chapter
chrisweb Dec 14, 2024
f1605c2
clarify when the release of react hooks eslint plugin v5 was
chrisweb Dec 14, 2024
05e7753
spellcheck
chrisweb Dec 14, 2024
3aa10bb
add link to eslint main migration docs
chrisweb Dec 16, 2024
f137592
add the new nextjs documentation page to links
chrisweb Dec 16, 2024
cddbf9c
replace the fixed version with a placeholder and an explanation how t…
chrisweb Dec 16, 2024
26f75c9
update dependencies, nextjs canary + eslint
chrisweb Dec 16, 2024
dffa268
typed routes is fixed can now always be enabled
chrisweb Dec 16, 2024
b66e15b
shorten report uri explanation
chrisweb Dec 16, 2024
11971ce
add staging synonym (just in case)
chrisweb Dec 16, 2024
4a885ec
15.1.1-canary.5 seems to be corrupt, downgrading nextjs canary by 1 m…
chrisweb Dec 16, 2024
35a5097
update nextjs documentation url
chrisweb Dec 16, 2024
72eae34
update nextjs documentation url
chrisweb Dec 16, 2024
904b8fe
new lock file
chrisweb Dec 16, 2024
5f5c468
update the react chapter with react 19 stable info
chrisweb Dec 16, 2024
0dac3ce
codemod command to upgrade dependencies automatically
chrisweb Dec 16, 2024
fac7299
rewrite the migration guide
chrisweb Dec 16, 2024
dd48e5a
finish migration chapter
chrisweb Dec 17, 2024
3713e62
add link to the official documentation
chrisweb Dec 17, 2024
74322b4
add the info about nextjs 15.1
chrisweb Dec 17, 2024
8eb3544
add some keywords, bump latest date
chrisweb Dec 17, 2024
f366153
still not happy with the first mention of server actions, I want to e…
chrisweb Dec 17, 2024
4630e36
update link to code on github using blame
chrisweb Dec 17, 2024
1359ebc
use better link for core web vitals
chrisweb Dec 17, 2024
7e97b78
fix wrong word used
chrisweb Dec 17, 2024
aebdd52
add github sponsors
chrisweb Dec 17, 2024
2784ef6
turn @stylistic/jsx-one-expression-per-line off
chrisweb Dec 17, 2024
55999dc
fix typo
chrisweb Dec 17, 2024
3be66a8
donations message is now an imported mdx message, added note to previ…
chrisweb Dec 17, 2024
81ab604
remove unnecessary return value type
chrisweb Dec 17, 2024
b7488a3
reusable donations message and archived article note
chrisweb Dec 17, 2024
10b2952
start bullet points with a small letter
chrisweb Dec 17, 2024
62e52f2
fix weird sentence
chrisweb Dec 17, 2024
768aa8f
clarify it is fixed in CNA >=15.1
chrisweb Dec 17, 2024
15b5722
fixing external urls
chrisweb Dec 17, 2024
1a32ba0
exclude discord as they dont like getting called
chrisweb Dec 18, 2024
2efcacb
fix links
chrisweb Dec 18, 2024
32f8ba9
improve the explanations about mdx extensions, make a warn box to exp…
chrisweb Dec 18, 2024
2219998
link to mdx page from the tutorial chapter about mdx extensions
chrisweb Dec 18, 2024
b2e7fcb
Merge branch 'preview' of https://github.com/chrisweb/chris.lu into p…
chrisweb Dec 18, 2024
c0a92b5
update the titles
chrisweb Dec 18, 2024
37e67ac
improve the no layout replacement with turbopack chapter
chrisweb Dec 19, 2024
550cf3f
improve the introduction turbopack chapter
chrisweb Dec 19, 2024
744ac15
draft rewrite due to turbo and mdxrs support for mdx plugins changing…
chrisweb Dec 19, 2024
4af84b9
clarify what package imports are supported in next config
chrisweb Dec 19, 2024
7e9bf28
add ticket example for config.ts problems
chrisweb Dec 19, 2024
b6e3afc
better name for mdx-components file
chrisweb Dec 19, 2024
a45910a
add link to turbopack info
chrisweb Dec 19, 2024
2f0b56c
todo
chrisweb Dec 20, 2024
0f2cf06
include next 15.1 changes
chrisweb Dec 20, 2024
ddf9094
improve title
chrisweb Dec 20, 2024
787b7c1
mdxRs, turbopack and MDX plugins (wip)
chrisweb Dec 20, 2024
812744d
dependencies update
chrisweb Dec 20, 2024
e5f1509
dependencies update
chrisweb Dec 21, 2024
22c5055
might have found a windows only bug, added more info about which 2 we…
chrisweb Dec 21, 2024
2d36073
I will finish it... some day
chrisweb Dec 22, 2024
3177112
moved todo where it makes more sense
chrisweb Dec 22, 2024
4dd46b0
confirmed works on my mac, so its a windows bug
chrisweb Dec 22, 2024
ea14085
remove old examples
chrisweb Dec 22, 2024
0061bf3
add the tldr solutions regarding MDX plugins (will they work with nex…
chrisweb Dec 23, 2024
a307b92
fix the height, remove todos, updated code so still need to update li…
chrisweb Dec 23, 2024
a818829
improve few links
chrisweb Dec 23, 2024
62bf870
update dependencies
chrisweb Dec 23, 2024
493f77e
use the tag it is much simpler
chrisweb Dec 23, 2024
6987d98
mark some eslint chapters as optional as they only contain informatio…
chrisweb Dec 23, 2024
9391e08
link to micromark page, in case they want to know more
chrisweb Dec 23, 2024
cb77df9
eslint plugin react
chrisweb Dec 24, 2024
fc19ef5
replace some spaces with a css margin on the icons, make svg icon sty…
chrisweb Dec 26, 2024
d4d1fb6
dependencies update
chrisweb Dec 26, 2024
2528e50
added more links to external sources for additional info
chrisweb Dec 26, 2024
4a1d29e
add link to gfm specs
chrisweb Dec 26, 2024
7c8bd46
update release date
chrisweb Dec 26, 2024
d27ee29
fix some line numbers
chrisweb Dec 26, 2024
1c531c4
fix example page, in next 15 they need to be async functions when usi…
chrisweb Dec 26, 2024
9fab5ba
update all all examples using props interface
chrisweb Dec 26, 2024
aec9796
fix line numbers
chrisweb Dec 26, 2024
0222539
clarify the section about what mdxRs is, and how to install the optio…
chrisweb Dec 27, 2024
bea6616
rename the custom flat config chapter and change few lines to be bett…
chrisweb Dec 27, 2024
d6821ea
little minor improvements throughout the page
chrisweb Dec 27, 2024
1de2d27
update dependencies
chrisweb Dec 27, 2024
f407116
dependencies update
chrisweb Dec 28, 2024
d91022e
add shiki diff transformer
chrisweb Dec 28, 2024
2b6ad43
update dependencies and add shiki transformers
chrisweb Dec 28, 2024
6b7271c
fix typo in classname
chrisweb Dec 28, 2024
6ff7103
finish (hopefully) the custom flat config chapter(s)
chrisweb Dec 28, 2024
999324b
add styling for the shiki diff transformer
chrisweb Dec 28, 2024
584e555
move disclaimer (footer) out of layout into own component
chrisweb Dec 28, 2024
20c988e
fix bug which resulted in click on modal to be ignored
chrisweb Dec 28, 2024
96b8ffb
dependencies update
chrisweb Dec 29, 2024
c1850be
improved sitemap code a bit
chrisweb Dec 29, 2024
9ee4e72
dependencies update
chrisweb Dec 30, 2024
8ee17dd
update dependencies
chrisweb Dec 30, 2024
5cd2075
update last modification date
chrisweb Dec 30, 2024
bde03f0
dependencies update, fix the package.json tags, use "npm update", but…
chrisweb Dec 31, 2024
7f4990a
use the nullish coalescing operator
chrisweb Dec 31, 2024
79f3d8f
finalize the line number for code blocks
chrisweb Dec 31, 2024
842801d
update line numbers and descriptions in MDX configuration examples fo…
chrisweb Dec 31, 2024
eb13e53
update line numbers in MDX code blocks for accuracy
chrisweb Dec 31, 2024
d5f09b1
update line numbers and titles in MDX code blocks for consistency
chrisweb Dec 31, 2024
af53db7
update line numbers of MDX code blocks and in explanations
chrisweb Dec 31, 2024
59fa140
add neon text highlight styles and update experiment headings in MDX …
chrisweb Dec 31, 2024
853f3b9
update line numbers, fix few typos and make few headlines more readable
chrisweb Dec 31, 2024
52ad696
this is a test, not sure about it yet, had trouble with vscode in the…
chrisweb Jan 1, 2025
9309b37
dependencies update
chrisweb Jan 1, 2025
2752d85
update MDX documentation for clarity and fix broken links
chrisweb Jan 1, 2025
86a2e13
exclude /blame/ URLs in remark lint configuration
chrisweb Jan 1, 2025
7c98005
refactor: update openGraph metadata to use sharedMetaData.openGraph
chrisweb Jan 1, 2025
9aa8e79
make opengraph images more readable
chrisweb Jan 1, 2025
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
Prev Previous commit
Next Next commit
add side note about early release of flat config for eslint-mdx package
chrisweb committed Dec 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 09c32fe3d426b9b53d96177355bdc0c07ad95809
Original file line number Diff line number Diff line change
@@ -230,6 +230,8 @@ Line X: Because off performance problems (linting process was very long) I decid

Line X we add the **mdxConfig** to the config export

Side note: eslint-mdx already had a [support flat config PR #468](https://github.com/mdx-js/eslint-mdx/pull/468) merged in Aug. 2023 😮

### Markdown linting using remark-lint

Now that we have added MDX ESLint plugin to our project, we can easily add the [remark-lint](https://github.com/remarkjs/remark-lint/) plugin to our setup, all we need to do is create a configuration file and import a few recommend rule sets for markdown linting