Skip to content

Commit

Permalink
feat: allow lunary-ee to use one port (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt authored May 6, 2024
1 parent 5ce7427 commit ccdbedc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build-push-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ jobs:
push: true
tags: |
lunary/lunary-ee:latest
lunary/lunary-ee:1.1.18
lunary/lunary-ee:rev-${{ steps.date.outputs.date }}-${{ steps.commit.outputs.hash }}
${{ github.event.release.tag_name != '' && format('lunary/{0}:{1}', 'lunary-ee', steps.release_tag.outputs.tag) || '' }}
platforms: linux/amd64
Expand All @@ -168,7 +167,6 @@ jobs:
push: true
tags: |
lunary/lunary-ee:latest
lunary/lunary-ee:1.1.18
lunary/lunary-ee:rev-${{ steps.date.outputs.date }}-${{ steps.commit.outputs.hash }}
${{ github.event.release.tag_name != '' && format('lunary/{0}:{1}', 'lunary-ee', steps.release_tag.outputs.tag) || '' }}
platforms: linux/arm64
2 changes: 1 addition & 1 deletion ops
Submodule ops updated from c95cb3 to e7db4b
11 changes: 10 additions & 1 deletion packages/frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const nextConfig = {
return []
}

return [
const redirects = [
{
source: "/ingest/:path*",
destination: "https://app.posthog.com/:path*",
Expand All @@ -46,6 +46,15 @@ const nextConfig = {
destination: process.env.API_URL + "/api/v1/template",
},
]

if(process.env.IS_SELF_HOSTED_MONOLITHIC) {
redirects.push({
source: '/api/path:*',
destination: 'http://localhost:3333/api/path:*'
})
}

return redirects
},
webpack: (config, { webpack }) => {
config.plugins.push(
Expand Down

0 comments on commit ccdbedc

Please sign in to comment.