• P
    Create example for adding env variables from next.js.config / Final (#6318) · 62f84bb1
    Peter Kellner 提交于
    * This is a non-working example of using PHASE_DEVELOPMENT_SERVER and PHASE_PRODUCTION_SERVER in production. I followed @timneutkens gist but was unable to make it work so I've boiled it down into this non-working example which I believe is the same.  The README is not updated. Once it is figured out why this is not working, I'll clean up the project and update the pull request to be complete but for now just want to make it work.
    
    * added .eslintrc so that ` eslint . --fix` would work (not sure if that was really necessary). I assume that is same as `yarn lint-fix`.
    
    * fixes for standard style
    
    * fixes for standard style
    
    * Fix example and add some comments
    
    * Updated documentation and small change to logic of prod,dev,staging to work as expected.
    Added significantly more doc then I normally would in the hopes that it helps someone avoid the mis-understanding I went through.  If it's too much, LMK and I'll reduce.
    
    * removed eslint and updated package.json to get rid of eslint and standardjs
    62f84bb1
index.js 182 字节