Docker Compose refactoring
This commit is contained in:
parent
7a2a667aaf
commit
a53a26f4c0
36 changed files with 411 additions and 524 deletions
|
|
@ -9,6 +9,5 @@
|
|||
**/coverage
|
||||
**/.next
|
||||
**/amigo.*.json
|
||||
**/.yalc
|
||||
**/cypress/videos
|
||||
**/cypress/screenshots
|
||||
|
|
|
|||
2
apps/leafcutter/.gitignore
vendored
2
apps/leafcutter/.gitignore
vendored
|
|
@ -21,8 +21,6 @@
|
|||
|
||||
# debug
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
# local env files
|
||||
.env.local
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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')) {
|
||||
|
|
|
|||
|
|
@ -9,6 +9,5 @@
|
|||
**/coverage
|
||||
**/.next
|
||||
**/amigo.*.json
|
||||
**/.yalc
|
||||
**/cypress/videos
|
||||
**/cypress/screenshots
|
||||
|
|
|
|||
|
|
@ -9,6 +9,5 @@
|
|||
**/coverage
|
||||
**/.next
|
||||
**/amigo.*.json
|
||||
**/.yalc
|
||||
**/cypress/videos
|
||||
**/cypress/screenshots
|
||||
|
|
|
|||
|
|
@ -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 },
|
||||
};
|
||||
|
|
|
|||
|
|
@ -9,6 +9,5 @@
|
|||
**/coverage
|
||||
**/.next
|
||||
**/amigo.*.json
|
||||
**/.yalc
|
||||
**/cypress/videos
|
||||
**/cypress/screenshots
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue