Skip to content

Commit f6152f6

Browse files
Show complete application configuration.
Assisted-By: devx/b3414b50-d642-461b-95a8-8f773c4d087b
1 parent eca99e1 commit f6152f6

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎context/getting-started.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ Utopia includes a redirection middleware to redirect all root-level requests to
3434
```ruby
3535
# in config/application.rb
3636

37-
use Utopia::Redirection::Rewrite,
38-
"/" => "/welcome/index"
37+
Application = Utopia::Application.build do
38+
use Utopia::Redirection::Rewrite,
39+
"/" => "/welcome/index"
40+
end
3941
```
4042

4143
The content for this page is stored in `pages/welcome/index.xnode`. The format of this page is a subset of HTML5 - open and close tags are strictly enforced.

‎guides/getting-started/readme.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ Utopia includes a redirection middleware to redirect all root-level requests to
3434
```ruby
3535
# in config/application.rb
3636

37-
use Utopia::Redirection::Rewrite,
38-
"/" => "/welcome/index"
37+
Application = Utopia::Application.build do
38+
use Utopia::Redirection::Rewrite,
39+
"/" => "/welcome/index"
40+
end
3941
```
4042

4143
The content for this page is stored in `pages/welcome/index.xnode`. The format of this page is a subset of HTML5 - open and close tags are strictly enforced.

0 commit comments

Comments
 (0)