-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b5d6d0
commit 243aae1
Showing
3 changed files
with
5,861 additions
and
9,000 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,119 +1,136 @@ | ||
import codeImport from 'remark-code-import'; | ||
export default defineNuxtConfig({ | ||
modules: [ | ||
'@nuxt/devtools', | ||
'@nuxt/content', | ||
'nuxt-gtag', | ||
'nuxt-simple-sitemap', | ||
'nuxt-multi-cache' | ||
], | ||
app: { | ||
baseURL: "/", | ||
// pageTransition: {name: 'page', mode: 'out-in'} | ||
head: { | ||
link: [ | ||
{rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png'}, | ||
{rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png'}, | ||
{rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png'}, | ||
{rel: 'manifest', href: '/site.webmanifest'}, | ||
{rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#2c0059'}, | ||
{name: 'msapplication-TileColor', content: '#2c0059'}, | ||
{rel: 'sitemap', type: 'application/xml', href: '/sitemap.xml', title: 'Sitemap'} | ||
], | ||
meta: [ | ||
{name: 'msapplication-TileColor', content: '#2c0059'}, | ||
{name: 'theme-color', content: '#2c0059'}, | ||
{property: 'og:image', content:'/og-image.png'} | ||
] | ||
} | ||
}, | ||
css: [ | ||
'@/assets/styles/vendor.scss', | ||
'@/assets/styles/app.scss' | ||
], | ||
content: { | ||
documentDriven: false, | ||
highlight: { | ||
// preload: [ | ||
// 'bash', | ||
// 'yaml', | ||
// 'sql', | ||
// 'java', | ||
// 'dockerfile', | ||
// 'hcl', | ||
// 'python', | ||
// 'twig', | ||
// 'groovy', | ||
// 'json5', | ||
// ], | ||
theme: 'github-dark' | ||
}, | ||
navigation: { | ||
fields: ["_file"] | ||
}, | ||
markdown: { | ||
remarkPlugins: { | ||
'remark-flexible-markers': { | ||
markerClassName: 'type-mark' | ||
}, | ||
'remark-code-import': { | ||
instance: codeImport | ||
}, | ||
} | ||
}, | ||
}, | ||
router: { | ||
trailingSlash: false, | ||
options: { | ||
strict: true | ||
} | ||
}, | ||
devServer: { | ||
port: 3001 | ||
}, | ||
vue: { | ||
compilerOptions: { | ||
isCustomElement: (tag) => { | ||
return tag === "rapi-doc"; | ||
} | ||
} | ||
}, | ||
gtag: { | ||
id: 'G-EYVNS03HHR', | ||
initialConsent: false | ||
}, | ||
runtimeConfig: { | ||
public: { | ||
siteUrl: process.env.NUXT_PUBLIC_SITE_URL || 'https://kestra.io', | ||
} | ||
}, | ||
// if using nuxt generate | ||
nitro: { | ||
compressPublicAssets: true, | ||
prerender: { | ||
routes: ['/rss.xml'], | ||
}, | ||
}, | ||
routeRules: { | ||
// 2023-04-17 : defines old site redirects | ||
'/features/usages.html': {redirect: '/use-cases'}, | ||
'/features/features.html': {redirect: '/features'}, | ||
'/features/enterprise.html': {redirect: '/enterprise'}, | ||
'/company/privacy-policy.html': {redirect: '/privacy-policy'}, | ||
'/company/cookie-policy.html': {redirect: '/cookie-policy'}, | ||
'/company/contact.html': {redirect: '/contact-us'}, | ||
'/company/careers.html': {redirect: '/careers'}, | ||
'/company/company/about-us.html': {redirect: '/about-us'}, | ||
'/community.html': {redirect: '/community'}, | ||
'/slack': {redirect: 'https://api.kestra.io/v1/communities/slack/redirect'}, | ||
modules: [ | ||
'@nuxt/devtools', | ||
'@nuxt/content', | ||
'nuxt-gtag', | ||
'nuxt-simple-sitemap', | ||
'nuxt-multi-cache' | ||
], | ||
|
||
}, | ||
build: { | ||
transpile: ['vue3-count-to'] | ||
}, | ||
multiCache: { | ||
data: { | ||
enabled: true, | ||
} | ||
app: { | ||
baseURL: "/", | ||
// pageTransition: {name: 'page', mode: 'out-in'} | ||
head: { | ||
link: [ | ||
{rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png'}, | ||
{rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png'}, | ||
{rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png'}, | ||
{rel: 'manifest', href: '/site.webmanifest'}, | ||
{rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#2c0059'}, | ||
{name: 'msapplication-TileColor', content: '#2c0059'}, | ||
{rel: 'sitemap', type: 'application/xml', href: '/sitemap.xml', title: 'Sitemap'} | ||
], | ||
meta: [ | ||
{name: 'msapplication-TileColor', content: '#2c0059'}, | ||
{name: 'theme-color', content: '#2c0059'}, | ||
{property: 'og:image', content:'/og-image.png'} | ||
] | ||
} | ||
}, | ||
|
||
css: [ | ||
'@/assets/styles/vendor.scss', | ||
'@/assets/styles/app.scss' | ||
], | ||
|
||
content: { | ||
documentDriven: false, | ||
highlight: { | ||
// preload: [ | ||
// 'bash', | ||
// 'yaml', | ||
// 'sql', | ||
// 'java', | ||
// 'dockerfile', | ||
// 'hcl', | ||
// 'python', | ||
// 'twig', | ||
// 'groovy', | ||
// 'json5', | ||
// ], | ||
theme: 'github-dark' | ||
}, | ||
navigation: { | ||
fields: ["_file"] | ||
}, | ||
markdown: { | ||
remarkPlugins: { | ||
'remark-flexible-markers': { | ||
markerClassName: 'type-mark' | ||
}, | ||
'remark-code-import': { | ||
instance: codeImport | ||
}, | ||
} | ||
}, | ||
}, | ||
|
||
router: { | ||
trailingSlash: false, | ||
options: { | ||
strict: true | ||
} | ||
}, | ||
|
||
devServer: { | ||
port: 3001 | ||
}, | ||
|
||
vue: { | ||
compilerOptions: { | ||
isCustomElement: (tag) => { | ||
return tag === "rapi-doc"; | ||
} | ||
} | ||
}, | ||
|
||
gtag: { | ||
id: 'G-EYVNS03HHR', | ||
initialConsent: false | ||
}, | ||
|
||
runtimeConfig: { | ||
public: { | ||
siteUrl: process.env.NUXT_PUBLIC_SITE_URL || 'https://kestra.io', | ||
} | ||
}, | ||
|
||
// if using nuxt generate | ||
nitro: { | ||
compressPublicAssets: true, | ||
prerender: { | ||
routes: ['/rss.xml'], | ||
}, | ||
}, | ||
|
||
routeRules: { | ||
// 2023-04-17 : defines old site redirects | ||
'/features/usages.html': {redirect: '/use-cases'}, | ||
'/features/features.html': {redirect: '/features'}, | ||
'/features/enterprise.html': {redirect: '/enterprise'}, | ||
'/company/privacy-policy.html': {redirect: '/privacy-policy'}, | ||
'/company/cookie-policy.html': {redirect: '/cookie-policy'}, | ||
'/company/contact.html': {redirect: '/contact-us'}, | ||
'/company/careers.html': {redirect: '/careers'}, | ||
'/company/company/about-us.html': {redirect: '/about-us'}, | ||
'/community.html': {redirect: '/community'}, | ||
'/slack': {redirect: 'https://api.kestra.io/v1/communities/slack/redirect'}, | ||
}, | ||
|
||
build: { | ||
transpile: ['vue3-count-to'] | ||
}, | ||
|
||
multiCache: { | ||
data: { | ||
enabled: true, | ||
} | ||
}, | ||
|
||
devtools: { | ||
timeline: { | ||
enabled: true | ||
} | ||
}) | ||
} | ||
}) |
Oops, something went wrong.
243aae1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
kestra-io – ./
kestra-io.vercel.app
kestra-io-git-main-kestra.vercel.app
kestra-io-kestra.vercel.app