Make examples easy to use (#798)

* [monorepo][m] - remove nx from simple-example

* [simple-example][sm] - install octokit and simplify README

* [simple-example][m] - fix linting

* [monorepo][m] - simplify examples

* [monorepo][sm] - update docs
This commit is contained in:
Luccas Mateus
2023-04-25 07:39:34 -03:00
committed by GitHub
parent e8bf4daf5f
commit 5305cc4c2f
25 changed files with 11948 additions and 355 deletions

View File

@@ -1,9 +1,3 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { withNx } = require('@nrwl/next/plugins/with-nx');
/**
* @type {import('@nrwl/next/plugins/with-nx').WithNxOptions}
**/
const nextConfig = {
async rewrites() {
return {
@@ -17,13 +11,7 @@ const nextConfig = {
},
serverRuntimeConfig: {
github_pat: process.env.GITHUB_PAT ? process.env.GITHUB_PAT : null,
project_name: process.env.PROJECT_NAME ? process.env.PROJECT_NAME : 'simple-example'
},
nx: {
// Set this to true if you would like to use SVGR
// See: https://github.com/gregberge/svgr
svgr: true,
},
};
module.exports = withNx(nextConfig);
module.exports = nextConfig;