Skip to content

Commit

Permalink
0.0.543
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Sep 18, 2024
1 parent 4273e63 commit b3f6e06
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion call.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ if (options.generate && (options.force || !fs.existsSync(`${cwd}/deep.config.jso
"DEEPLINKS_PUBLIC_URL": isGitpod ? await gitpodUrl(3006) : `${deeplinks}`,
"NEXT_PUBLIC_DEEPLINKS_URL": isGitpod ? await gitpodUrl(3006) : `${deeplinks}`,
"NEXT_PUBLIC_GQL_PATH": isGitpod ? await gitpodUrl(3006)+'/gql' : `${deeplinks}/gql`,
"NEXT_PUBLIC_GQL_SSL": "0",
"NEXT_PUBLIC_GQL_SSL": isGitpod ? "1" : "0",
"NEXT_PUBLIC_DEEPLINKS_SERVER": isGitpod ? await gitpodUrl(3007) : `${perception}`,
"NEXT_PUBLIC_ENGINES_ROUTE": "0",
"NEXT_PUBLIC_DISABLE_CONNECTOR": "1",
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ services:
- 'DEEPLINKS_HASURA_SECRET=${DEEPLINKS_HASURA_SECRET}'
- 'JWT_SECRET=${DEEP_HASURA_GRAPHQL_JWT_SECRET}'
- 'DEEPLINKS_HASURA_STORAGE_URL=${DEEPLINKS_HASURA_STORAGE_URL}'
- 'DEEPLINKS_PUBLIC_URL=${DEEPLINKS_PUBLIC_URL}'
logging:
driver: "json-file"
options:
Expand Down
2 changes: 1 addition & 1 deletion imports/router/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const error = debug.extend('error');
const PORT = process.env.PORT || 3006;
const DOCKER_DEEPLINKS_URL = process.env.DOCKER_DEEPLINKS_URL || 'http://host.docker.internal:3006';
const DEEPLINKS_ROUTE_HANDLERS_HOST = process.env.DEEPLINKS_ROUTE_HANDLERS_HOST || 'host.docker.internal';
const deeplinksUrl = process.env.NEXT_PUBLIC_DEEPLINKS_URL;
const deeplinksUrl = process.env.DEEPLINKS_PUBLIC_URL;
export const DOCKER = process.env.DOCKER || '0';

const delay = time => new Promise(res => setTimeout(res, time));
Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ const handleRoutes = async () => {
proxyReq.setHeader('deep-call-options', encodeURI(JSON.stringify({
jwt,
code,
data: { routeString, path: req.path, originalUrl: req.originalUrl, baseUrl: req.baseUrl, handlerId, routeId: route.id, router: router.id },
data: { deeplinksUrl: process.env?.DEEPLINKS_PUBLIC_URL, routeString, path: req.path, originalUrl: req.originalUrl, baseUrl: req.baseUrl, handlerId, routeId: route.id, router: router.id },
})));
return fixRequestBody(proxyReq, req);
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deep-foundation/deeplinks",
"version": "0.0.542",
"version": "0.0.543",
"license": "Unlicense",
"type": "module",
"main": "import.js",
Expand Down

0 comments on commit b3f6e06

Please sign in to comment.