Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 812f540

Browse files
committedOct 8, 2024·
Fix setup ember app script
Previous script changes unexpectedly. Before; ``` diff $ g df config/environment.js diff --git a/config/environment.js b/config/environment.js index 5513a9a..772ff99 100644 --- a/config/environment.js +++ b/config/environment.js @@ -5,7 +5,7 @@ module.exports = function (environment) { modulePrefix: 'my-app', environment, rootURL: '/', - locationType: 'auto', + locationType: 'hash', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build @@ -40,7 +40,7 @@ module.exports = function (environment) { ENV.APP.LOG_VIEW_LOOKUPS = false; ENV.APP.rootElement = '#ember-testing'; - ENV.APP.autoboot = false; + ENV.APP.hashboot = false; } if (environment === 'production') { ``` After ``` diff diff --git a/config/environment.js b/config/environment.js index 5513a9a..6b7495e 100644 --- a/config/environment.js +++ b/config/environment.js @@ -5,7 +5,7 @@ module.exports = function (environment) { modulePrefix: 'my-app', environment, rootURL: '/', - locationType: 'auto', + locationType: 'hash', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build ```
1 parent 6508be5 commit 812f540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎bin/setup_ember

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ setup_ember() {
99
git clone -b 'v4.0.0' https://github.com/ember-cli/ember-new-output.git $target
1010

1111
echo '-- Make router catchall routes'
12-
sed -i -e 's/auto/hash/' $target/config/environment.js
12+
sed -i -e "s/'auto'/'hash'/" $target/config/environment.js
1313

1414
echo '-- Add an image to a template'
1515
cp spec/fixtures/application.hbs $target/app/templates/application.hbs

0 commit comments

Comments
 (0)
Please sign in to comment.