Skip to content

refactor: migrate from Next 12 to 13 - WIP#1

Open
itspedr0 wants to merge 17 commits intodevelopfrom
refactor/migration
Open

refactor: migrate from Next 12 to 13 - WIP#1
itspedr0 wants to merge 17 commits intodevelopfrom
refactor/migration

Conversation

@itspedr0
Copy link

@itspedr0 itspedr0 commented Sep 28, 2023

Quick notes:

To start working on this project, follow @aysllanferreira Kutt notes until step 5: https://pinely.atlassian.net/wiki/spaces/~63fc95c67c30bbd6b33daa3f/pages/378503169/Kutt+Notes

Add fixed values on the publicRuntimeConfig inside next.config.js because this is another issue we have, it's not recognizing env variables.

// next.config.js

const { parsed: localEnv } = require("dotenv").config();

module.exports = {
  publicRuntimeConfig: {
    CONTACT_EMAIL: "your@email.com",
    SITE_NAME: "Kutt",
    DEFAULT_DOMAIN: "your-domain.com",
    RECAPTCHA_SITE_KEY: null,
    REPORT_EMAIL: "your@email.com",
    DISALLOW_ANONYMOUS_LINKS: false,
    DISALLOW_REGISTRATION: false
  }
};

There are still some routes to be moved to the app router.

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