|
| 1 | +<?php |
| 2 | + |
| 3 | +return [ |
| 4 | + |
| 5 | + /* |
| 6 | + |-------------------------------------------------------------------------- |
| 7 | + | Base URL |
| 8 | + |-------------------------------------------------------------------------- |
| 9 | + | |
| 10 | + | This informs the generator where the static site will eventually be hosted. |
| 11 | + | For instance, if you are relying on absolute URLs in your app, this one |
| 12 | + | will be used. It should be an absolute URL, eg. "http://my-app.com" |
| 13 | + | |
| 14 | + */ |
| 15 | + |
| 16 | + 'base_url' => config('app.url'), |
| 17 | + |
| 18 | + /* |
| 19 | + |-------------------------------------------------------------------------- |
| 20 | + | Destination Directory |
| 21 | + |-------------------------------------------------------------------------- |
| 22 | + | |
| 23 | + | This option defines where the static files will be saved. |
| 24 | + | |
| 25 | + */ |
| 26 | + |
| 27 | + 'destination' => storage_path('app/static'), |
| 28 | + |
| 29 | + /* |
| 30 | + |-------------------------------------------------------------------------- |
| 31 | + | Files and Symlinks |
| 32 | + |-------------------------------------------------------------------------- |
| 33 | + | |
| 34 | + | You are free to define a set of directories to be copied along with the |
| 35 | + | generated HTML files. For example, you may want to link your CSS, |
| 36 | + | JavaScript, static images, and perhaps any uploaded assets. |
| 37 | + | You may choose to symlink rather than copy. |
| 38 | + | |
| 39 | + */ |
| 40 | + |
| 41 | + 'copy' => [ |
| 42 | + public_path('assets') => 'assets', |
| 43 | + public_path('css') => 'css', |
| 44 | + public_path('img') => 'img', |
| 45 | + public_path('js') => 'js', |
| 46 | + ], |
| 47 | + |
| 48 | + 'symlinks' => [ |
| 49 | + // public_path('css') => 'css', |
| 50 | + // public_path('js') => 'js', |
| 51 | + ], |
| 52 | + |
| 53 | + /* |
| 54 | + |-------------------------------------------------------------------------- |
| 55 | + | Additional URLs |
| 56 | + |-------------------------------------------------------------------------- |
| 57 | + | |
| 58 | + | Here you may define a list of additional URLs to be generated, |
| 59 | + | such as manually created routes. |
| 60 | + | |
| 61 | + */ |
| 62 | + |
| 63 | + 'urls' => [ |
| 64 | + // |
| 65 | + ], |
| 66 | + |
| 67 | + /* |
| 68 | + |-------------------------------------------------------------------------- |
| 69 | + | Exclude URLs |
| 70 | + |-------------------------------------------------------------------------- |
| 71 | + | |
| 72 | + | Here you may define a list of URLs that should not be generated. |
| 73 | + | |
| 74 | + */ |
| 75 | + |
| 76 | + 'exclude' => [ |
| 77 | + // |
| 78 | + ], |
| 79 | + |
| 80 | + /* |
| 81 | + |-------------------------------------------------------------------------- |
| 82 | + | Glide |
| 83 | + |-------------------------------------------------------------------------- |
| 84 | + | |
| 85 | + | Glide images are dynamically resized server-side when requesting a URL. |
| 86 | + | On a static site, you would just be serving HTML files without PHP. |
| 87 | + | Glide images will be pre-generated into the given directory. |
| 88 | + | |
| 89 | + */ |
| 90 | + |
| 91 | + 'glide' => [ |
| 92 | + 'directory' => 'img', |
| 93 | + ], |
| 94 | + |
| 95 | + /* |
| 96 | + |-------------------------------------------------------------------------- |
| 97 | + | Failures |
| 98 | + |-------------------------------------------------------------------------- |
| 99 | + | |
| 100 | + | You may configure whether the console command will exit early with a |
| 101 | + | failure status code when it encounters errors or warnings. You may |
| 102 | + | want to do this to prevent deployments in CI environments, etc. |
| 103 | + | |
| 104 | + */ |
| 105 | + |
| 106 | + 'failures' => false, // 'errors' or 'warnings' |
| 107 | + |
| 108 | +]; |
0 commit comments