Skip to content

Commit

Permalink
feat: Added APP_ROUTER_DEFAULT_URI to configure framework.router.de…
Browse files Browse the repository at this point in the history
…fault_uri
  • Loading branch information
ambroisemaupate committed Oct 20, 2023
1 parent cfc315d commit 67ef138
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ MAILER_DSN=smtp://mailer:1025?encryption=&auth_mode=
APP_TITLE="Roadiz skeleton"
APP_DESCRIPTION="Roadiz skeleton"
APP_NAMESPACE=roadiz_skeleton
APP_ROUTER_DEFAULT_URI=http://roadiz-skeleton.test
APP_CACHE=0
APP_UNSPLASH_CLIENT_ID=
APP_VERSION=0.1.0
Expand Down
2 changes: 2 additions & 0 deletions .env.prod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
###> sentry/sentry-symfony ###
SENTRY_DSN=
###< sentry/sentry-symfony ###

APP_ROUTER_DEFAULT_URI=https://roadiz-skeleton.test
4 changes: 3 additions & 1 deletion config/packages/routing.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
parameters:
env(APP_ROUTER_DEFAULT_URI): 'http://localhost'
framework:
router:
utf8: true

# Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
#default_uri: http://localhost
default_uri: '%env(APP_ROUTER_DEFAULT_URI)%'

when@prod:
framework:
Expand Down

0 comments on commit 67ef138

Please sign in to comment.