Copy custom instance files into the build

merge-requests/1076/head
Alex Gleason 2022-03-05 14:38:21 -06:00
rodzic 7d8448c24b
commit ea0b6e7fff
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
3 zmienionych plików z 18 dodań i 0 usunięć

Wyświetl plik

Wyświetl plik

@ -38,6 +38,17 @@ For example:
See `app/soapbox/utils/features.js` for the full list of features. See `app/soapbox/utils/features.js` for the full list of features.
### Custom files (`custom/instance/*`)
You can place arbitrary files of any type in the `custom/instance/` directory.
They will be available on your website at `https://example.com/instance/{filename}`.
Subdirectories are supported, too.
Some use cases:
- Logos, which can then be referenced from `soapbox.json`
- About pages, available at `/about` on your website.
## Environment variables ## Environment variables
When compiling Soapbox FE, environment variables may be passed to change the build itself. When compiling Soapbox FE, environment variables may be passed to change the build itself.

Wyświetl plik

@ -97,6 +97,13 @@ module.exports = {
}, { }, {
from: join(__dirname, '../app/instance'), from: join(__dirname, '../app/instance'),
to: join(output.path, 'instance'), to: join(output.path, 'instance'),
}, {
from: join(__dirname, '../custom/instance'),
to: join(output.path, 'instance'),
noErrorOnMissing: true,
globOptions: {
ignore: ['**/.gitkeep'],
},
}], }],
options: { options: {
concurrency: 100, concurrency: 100,