feat: adds scully

This commit is contained in:
Markus Huggler
2020-11-10 21:11:35 +01:00
parent 7f72252f33
commit ed22dcf5a4
30 changed files with 2078 additions and 355 deletions

View File

@@ -0,0 +1,17 @@
import {baseHrefRewrite} from '@scullyio/scully-plugin-base-href-rewrite';
import {ScullyConfig, setPluginConfig} from '@scullyio/scully';
const {FixStaticLinks} = require('./scully/plugins/fixStaticLinks');
const defaultPostRenderers = [baseHrefRewrite, FixStaticLinks];
setPluginConfig(baseHrefRewrite, {href: `/${process.env.LOCALE}/`});
export const config: ScullyConfig = {
projectRoot: './src',
projectName: 'localization',
distFolder: `./dist/localization/${process.env.LOCALE}`,
outDir: `./dist/static/${process.env.LOCALE}`,
puppeteerLaunchOptions: {args: ['--no-sandbox', '--disable-setuid-sandbox']},
defaultPostRenderers,
routes: {}
};