Align editor proxy with external editor service
This commit is contained in:
parent
d3bb06989a
commit
e8d5e87853
9
.github/workflows/build-images.yml
vendored
9
.github/workflows/build-images.yml
vendored
@ -66,6 +66,9 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
outputs:
|
||||
dashboard-digest: ${{ steps.build.outputs.digest }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
service:
|
||||
@ -169,7 +172,7 @@ jobs:
|
||||
# -------------------------------------------------------------
|
||||
- uses: anchore/sbom-action@v0
|
||||
with:
|
||||
image: ${{ env.REGISTRY }}/${{ env.ORG }}/${{ matrix.service.name }}@${{ steps.build.outputs.digest }}
|
||||
image: ${{ env.REGISTRY }}/${{ env.ORG }}/${{ matrix.service.name }}@${{ needs.build.outputs.dashboard-digest }}
|
||||
output-file: sbom.spdx.json
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
@ -182,7 +185,7 @@ jobs:
|
||||
# -------------------------------------------------------------
|
||||
- uses: aquasecurity/trivy-action@0.28.0
|
||||
with:
|
||||
image-ref: ${{ env.REGISTRY }}/${{ env.ORG }}/${{ matrix.service.name }}@${{ steps.build.outputs.digest }}
|
||||
image-ref: ${{ env.REGISTRY }}/${{ env.ORG }}/${{ matrix.service.name }}@${{ needs.build.outputs.dashboard-digest }}
|
||||
severity: HIGH,CRITICAL
|
||||
exit-code: '1'
|
||||
|
||||
@ -197,5 +200,5 @@ jobs:
|
||||
env:
|
||||
COSIGN_EXPERIMENTAL: "true"
|
||||
run: |
|
||||
IMG=${{ env.REGISTRY }}/${{ env.ORG }}/${{ matrix.service.name }}@${{ steps.build.outputs.digest }}
|
||||
IMG=${{ env.REGISTRY }}/${{ env.ORG }}/${{ matrix.service.name }}@${{ needs.build.outputs.dashboard-digest }}
|
||||
cosign sign --yes "$IMG"
|
||||
|
||||
5
Makefile
5
Makefile
@ -59,8 +59,9 @@ ensure-deps:
|
||||
fi
|
||||
|
||||
dev: ensure-deps
|
||||
@echo "🚀 Starting Next.js dev server (dashboard)..."
|
||||
yarn dev -p 3001
|
||||
@echo "🚀 Starting Next.js dev server (dashboard)..."
|
||||
@echo "ℹ️ /editor is proxied to an external NeuraPress front-end at http://localhost:4000."
|
||||
yarn dev -p 3001
|
||||
|
||||
start:
|
||||
@echo "🚀 Starting Next.js dev server (dashboard) in background..."
|
||||
|
||||
@ -96,6 +96,10 @@ export async function redirects() {
|
||||
|
||||
export async function rewrites() {
|
||||
return [
|
||||
{
|
||||
source: '/editor',
|
||||
destination: 'http://localhost:4000',
|
||||
},
|
||||
{
|
||||
source: '/editor/:path*',
|
||||
destination: 'http://localhost:4000/:path*',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user