mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-10-22 17:05:31 +02:00
UPD: Minor edits
This commit is contained in:
parent
473b406f8a
commit
630672e87e
13
.env.dist
13
.env.dist
@ -7,3 +7,16 @@ SS_DEFAULT_ADMIN_USERNAME=''
|
||||
SS_DEFAULT_ADMIN_PASSWORD=''
|
||||
|
||||
SS_ENVIRONMENT_TYPE='dev'
|
||||
|
||||
|
||||
NOCAPTCHA_SITE_KEY=''
|
||||
NOCAPTCHA_SECRET_KEY=''
|
||||
|
||||
TURNSTILE_SITE_KEY=''
|
||||
TURNSTILE_SECRET_KEY=''
|
||||
|
||||
GOOGLEMAPS_API_KEY=''
|
||||
MAPBOX_API_KEY=''
|
||||
|
||||
APP_SMTP_USERNAME=''
|
||||
APP_SMTP_PASSWORD=''
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
use SilverStripe\Core\EnvironmentLoader;
|
||||
|
||||
$env = BASE_PATH . '/app/.env';
|
||||
$loader = new EnvironmentLoader();
|
||||
$loader->loadFile($env);
|
||||
/*\SilverStripe\Core\Config\Config::modify()->set(
|
||||
\SilverStripe\Control\Email\Email::class,
|
||||
'bcc_all_emails_to',//'cc_all_emails_to',
|
||||
|
@ -10,11 +10,11 @@ A2nt\CMSNiceties\Templates\DeferredRequirements:
|
||||
deferred: true
|
||||
noreact: true
|
||||
nojquery: true
|
||||
jquery_version: '`JQUERY_VER`'
|
||||
jquery_version: '3.7.1'
|
||||
fontawesome_svg: false
|
||||
|
||||
SilverStripe\FontAwesome\FontAwesomeField:
|
||||
version: '`FONTAWESOME_VER`'
|
||||
version: '6.5.1'
|
||||
|
||||
SilverStripe\View\Requirements:
|
||||
disable_flush_combined: true
|
||||
|
3
env-dist
3
env-dist
@ -19,6 +19,3 @@ MAPBOX_API_KEY=''
|
||||
|
||||
APP_SMTP_USERNAME=''
|
||||
APP_SMTP_PASSWORD=''
|
||||
|
||||
FONTAWESOME_VER='6.5.1'
|
||||
JQUERY_VER='3.4.1'
|
||||
|
@ -3,7 +3,6 @@
|
||||
use SilverStripe\Control\HTTPApplication;
|
||||
use SilverStripe\Control\HTTPRequestBuilder;
|
||||
use SilverStripe\Core\CoreKernel;
|
||||
use SilverStripe\Core\Startup\ErrorControlChainMiddleware;
|
||||
|
||||
// Find autoload.php
|
||||
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
|
||||
@ -22,6 +21,5 @@ $request = HTTPRequestBuilder::createFromEnvironment();
|
||||
// Default application
|
||||
$kernel = new CoreKernel(BASE_PATH);
|
||||
$app = new HTTPApplication($kernel);
|
||||
$app->addMiddleware(new ErrorControlChainMiddleware($app));
|
||||
$response = $app->handle($request);
|
||||
$response->output();
|
||||
|
Loading…
Reference in New Issue
Block a user