Skip to content

Commit 26d9a05

Browse files
committed
fix: asset server in test env
1 parent d957d41 commit 26d9a05

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ phpstan:
128128
### Compiler les assets pour la production
129129
assets:
130130
./node_modules/.bin/webpack -p
131+
php bin/console importmap:install
131132

132133
### Lancer le watcher pour les assets
133134
watch:

app/config/packages/asset_mapper.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ framework:
66
importmap_path: '%kernel.project_dir%/../importmap.php'
77
missing_import_mode: strict
88
vendor_dir: '%kernel.project_dir%/../assets/vendor'
9+
public_prefix: /dist/
910

1011
when@prod:
1112
framework:

htdocs/.htaccess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ RewriteRule ^ask/forum/? https://event.afup.org [R=301,L]
5454
RewriteRule ^ask/? / [R=301,L]
5555

5656
## This url are handled by symfony
57-
RewriteCond %{ENV:APP_ENV} ^dev$
57+
RewriteCond %{ENV:APP_ENV} ^(dev|test)$
5858
RewriteRule (dist)/? /index.php [L] # Asset in local development
5959
RewriteRule (event|connect|_|association|talks|meetups|blog|admin|p|home|news|techno_watch|member|login|logout|password-reset|rss.xml)/? /index.php [END]

0 commit comments

Comments
 (0)