[simple-example][lg] - multiple datasets per repo are now possible

This commit is contained in:
Luccas Mateus de Medeiros Gomes
2023-04-22 14:05:21 -03:00
parent 6b2b5f5e87
commit 996568c0f9
20 changed files with 577 additions and 525 deletions

View File

@@ -8,16 +8,6 @@ const nextConfig = {
async rewrites() {
return {
beforeFiles: [
{
source: "/@org/:org/:project/:file(\.\+\\\.\.\+\$)",
destination:
'/api/proxy?url=https://raw.githubusercontent.com/:org/:project/main/:file',
},
{
source: "/@:org/:project/:file(\.\+\\\.\.\+\$)",
destination:
'/api/proxy?url=https://raw.githubusercontent.com/:org/:project/main/:file',
},
{
source: '/@:org/:project*',
destination: '/@org/:org/:project*',
@@ -25,6 +15,10 @@ 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