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

Update Next.js to v15 #792

Merged
merged 4 commits into from
Oct 28, 2024
Merged

Update Next.js to v15 #792

merged 4 commits into from
Oct 28, 2024

Conversation

joshka
Copy link
Contributor

@joshka joshka commented Oct 28, 2024

bump caniuse db

https://github.com/browserslist/browserslist#browsers-data-updating

fix sed command to work with both GNU and MacOS sed

The sed command which replaces the markdown import in the api.js file
was not working on MacOS because the -i flag requires an argument
with the backup file extension. This commit adds the .bak extension
to the sed command to make it work on both GNU and MacOS sed (and then
removes the backup file).

Update to next.js 14

  • "next build export" is replaced with an output config option
    https://nextjs.org/docs/app/building-your-application/deploying/static-exports
  • "next start" is not compatible with static exports and has been
    removed from the package scripts
  • blog rss feed is now generated to out/blog/index.xml instead of
    _next/static/feed.xml to work with the default output and the redirect
    in netlify.toml has been reversed so that rss feed requests are
    redirected to the new location

Upgrade to nextjs 15

  • Use turbopack instead of webpack
  • User typescript instead of js for next config
  • silence deprecation warnings on bulma sass problems.
    Bulma 1.0.2 breaks a bunch of things that worked in 0.8
    so it's difficult to update to without changing how the site
    looks.

The sed command which replaces the markdown import in the api.js file
was not working on MacOS because the `-i` flag requires an argument
with the backup file extension. This commit adds the `.bak` extension
to the sed command to make it work on both GNU and MacOS sed (and then
removes the backup file).
- "next build export" is replaced with an output config option
  https://nextjs.org/docs/app/building-your-application/deploying/static-exports
- "next start" is not compatible with static exports and has been
  removed from the package scripts
- blog rss feed is now generated to out/blog/index.xml instead of
  _next/static/feed.xml to work with the default output and the redirect
  in netlify.toml has been reversed so that rss feed requests are
  redirected to the new location
- Use turbopack instead of webpack
- User typescript instead of js for next config
- silence deprecation warnings on bulma sass problems.
  Bulma 1.0.2 breaks a bunch of things that worked in 0.8
  so it's difficult to update to without changing how the site
  looks.
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

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

Thank you.

@Darksonn Darksonn merged commit a79b684 into tokio-rs:master Oct 28, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants