Docker Compose refactoring

This commit is contained in:
Darren Clarke 2023-06-21 12:48:07 +00:00 committed by GitHub
parent 7a2a667aaf
commit a53a26f4c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 411 additions and 524 deletions

View file

@ -9,6 +9,5 @@
**/coverage
**/.next
**/amigo.*.json
**/.yalc
**/cypress/videos
**/cypress/screenshots

View file

@ -21,8 +21,6 @@
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# local env files
.env.local

View file

@ -6,8 +6,6 @@ First, run the development server:
```bash
npm run dev
# or
yarn dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

View file

@ -6,8 +6,6 @@ First, run the development server:
```bash
npm run dev
# or
yarn dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

View file

@ -35,7 +35,8 @@ const checkRewrites = async (request: NextRequestWithAuth) => {
const metamigoURL = process.env.METAMIGO_URL ?? "http://metamigo:3000";
if (request.nextUrl.pathname.startsWith('/proxy/leafcutter')) {
return rewriteURL(request, linkBaseURL, leafcutterURL);
const headers = { 'X-Leafcutter-Embedded': "true" };
return rewriteURL(request, linkBaseURL, leafcutterURL, headers);
} else if (request.nextUrl.pathname.startsWith('/proxy/metamigo')) {
return rewriteURL(request, linkBaseURL, metamigoURL);
} else if (request.nextUrl.pathname.startsWith('/proxy/zammad')) {

View file

@ -9,6 +9,5 @@
**/coverage
**/.next
**/amigo.*.json
**/.yalc
**/cypress/videos
**/cypress/screenshots

View file

@ -9,6 +9,5 @@
**/coverage
**/.next
**/amigo.*.json
**/.yalc
**/cypress/videos
**/cypress/screenshots

View file

@ -5,7 +5,7 @@ module.exports = {
"eslint-config-link/profile/node",
"eslint-config-link/profile/typescript",
"eslint-config-link/profile/jest",
"eslint-config-next",
"next",
],
parserOptions: { tsconfigRootDir: __dirname },
};

View file

@ -9,6 +9,5 @@
**/coverage
**/.next
**/amigo.*.json
**/.yalc
**/cypress/videos
**/cypress/screenshots