Merge pull request #6 from cloud-neutral-toolkit/codex/configure-next.js-rewrite-for-neurapress
Align editor proxy and CI with external NeuraPress service
This commit is contained in:
commit
fcb15ef683
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:
|
||||
@ -171,7 +174,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
|
||||
@ -184,7 +187,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'
|
||||
|
||||
@ -199,5 +202,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