Skip to content

Commit f2d96bf

Browse files
committed
feat(vapor): use www as the root domain
1 parent 097a096 commit f2d96bf

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

Diff for: config/vapor.php

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Redirect "www" To The Root Domain
8+
|--------------------------------------------------------------------------
9+
|
10+
| When this option is enabled, Vapor will redirect requests to the "www"
11+
| subdomain to the application's root domain. When this option is not
12+
| enabled, Vapor redirects your root domain to the "www" subdomain.
13+
|
14+
*/
15+
16+
'redirect_to_root' => false,
17+
18+
/*
19+
|--------------------------------------------------------------------------
20+
| Redirect robots.txt
21+
|--------------------------------------------------------------------------
22+
|
23+
| When this option is enabled, Vapor will redirect requests for your
24+
| application's "robots.txt" file to the location of the S3 asset
25+
| bucket or CloudFront's asset URL instead of serving directly.
26+
|
27+
*/
28+
29+
'redirect_robots_txt' => true,
30+
31+
/*
32+
|--------------------------------------------------------------------------
33+
| Servable Assets
34+
|--------------------------------------------------------------------------
35+
|
36+
| Here you can configure list of public assets that should be servable
37+
| from your application's domain instead of only being servable via
38+
| the public S3 "asset" bucket or the AWS CloudFront CDN network.
39+
|
40+
*/
41+
42+
'serve_assets' => [
43+
//
44+
],
45+
46+
];

0 commit comments

Comments
 (0)