GuillaumeSalles/phi-vscode

NextJS Integration with existing exports

bpmct opened this issue · 0 comments

bpmct commented

Hi,

I went to try phi with the NextJS integration but I already have a next.config.js with existing exports. How can I still use withPhi()?

//Feel free to change this file if you are not using ZEIT/now to develop & deploy. It is .gitignored
module.exports = {
  env: {
    BUILTON_APIKEY: process.env.BUILTON_APIKEY,
    ... etc
  },
};

const withPhi = require("@phijs/next-plugin")();
module.exports = withPhi();

Thanks! It's a cool idea. Trying it out on a fresh Next project now