Skip to content

Commit

Permalink
Fixed frontend assets path
Browse files Browse the repository at this point in the history
  • Loading branch information
butschster committed Feb 21, 2025
1 parent 6efd000 commit 8c7f49f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
push: true
build-args: |
APP_VERSION=${{ github.ref_name }}
FRONTEND_IMAGE_TAG=latest
FRONTEND_IMAGE_TAG=${{ secrets.FRONTEND_IMAGE_TAG }}
BRANCH=${{ github.ref_name }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
push: true
build-args: |
APP_VERSION=${{ github.ref_name }}
FRONTEND_IMAGE_TAG=latest
FRONTEND_IMAGE_TAG=${{ secrets.FRONTEND_IMAGE_TAG }}
BRANCH=${{ github.ref_name }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
Expand Down
2 changes: 1 addition & 1 deletion app.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
directories: [
'root' => __DIR__,
'modules' => __DIR__ . '/app/modules',
'public' => __DIR__ . '/frontend',
'public' => __DIR__ . '/frontend/dist',
],
exceptionHandler: Handler::class,
)->run();
Expand Down
3 changes: 2 additions & 1 deletion app/src/Interfaces/Http/Handler/FrontendRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ private function isValidRequest(ServerRequestInterface $request): bool
$path = $request->getUri()->getPath();

return $path === '/'
|| \str_starts_with($path, '/_nuxt/')
|| \str_starts_with($path, '/src/')
|| \str_starts_with($path, '/assets/')
|| $path === '/favicon/favicon.ico'
|| $path === '/bg.jpg';
}
Expand Down

0 comments on commit 8c7f49f

Please sign in to comment.