mirror of
https://github.com/Start9Labs/start9.com.git
synced 2026-03-30 20:14:50 +00:00
add cors headers and another pubkey
This commit is contained in:
12
.eleventy.js
12
.eleventy.js
@@ -9,7 +9,7 @@ module.exports = function (eleventyConfig) {
|
||||
eleventyConfig.addPassthroughCopy('./src/assets/videos/');
|
||||
eleventyConfig.addPassthroughCopy('public')
|
||||
|
||||
//plugins
|
||||
// plugins
|
||||
eleventyConfig.addPlugin(faviconPlugin, { outputDir: './public' });
|
||||
eleventyConfig.addPlugin(slinkity.plugin, slinkity.defineConfig({}))
|
||||
eleventyConfig.addPlugin(pluginSEO, require("./src/_data/seo.json"));
|
||||
@@ -17,11 +17,19 @@ module.exports = function (eleventyConfig) {
|
||||
baseUrl: 'src/_includes/svgs/',
|
||||
});
|
||||
|
||||
//filters
|
||||
// filters
|
||||
eleventyConfig.addFilter('date', function (date, dateFormat) {
|
||||
return format(date, dateFormat)
|
||||
})
|
||||
|
||||
// cors
|
||||
eleventyConfig.setBrowserSyncConfig({
|
||||
middleware: function (req, res, next) {
|
||||
res.setHeader('Access-Control-Allow-Origin', '*');
|
||||
next();
|
||||
}
|
||||
});
|
||||
|
||||
return {
|
||||
dir: { input: "src", output: "_site", data: "_data" },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user