mirror of
https://github.com/Nezumi-2711/Sink.git
synced 2026-09-22 13:48:35 +00:00
feat: init
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
devtools: { enabled: true },
|
||||
modules: [
|
||||
'@nuxthub/core',
|
||||
'shadcn-nuxt',
|
||||
'@nuxt/eslint',
|
||||
'@nuxtjs/tailwindcss',
|
||||
],
|
||||
routeRules: {
|
||||
'/': {
|
||||
prerender: true,
|
||||
},
|
||||
'/dashboard/**': {
|
||||
ssr: false,
|
||||
},
|
||||
},
|
||||
hub: {
|
||||
analytics: true,
|
||||
blob: false,
|
||||
cache: false,
|
||||
database: false,
|
||||
kv: true,
|
||||
// ai: true,
|
||||
},
|
||||
eslint: {
|
||||
config: {
|
||||
stylistic: true,
|
||||
},
|
||||
},
|
||||
nitro: {
|
||||
experimental: {
|
||||
// Enable Server API documentation within NuxtHub
|
||||
openAPI: true,
|
||||
},
|
||||
},
|
||||
runtimeConfig: {
|
||||
siteToken: 'SinkCool',
|
||||
redirectStatusCode: '301',
|
||||
homeURL: '',
|
||||
cfAccountId: '',
|
||||
cfApiToken: '',
|
||||
dataset: 'sink',
|
||||
aiModel: '@cf/meta/llama-3-8b-instruct',
|
||||
aiPrompt: `You are a URL shortening assistant, please shorten the URL provided by the user into a SLUG. The SLUG information must come from the URL itself, do not make any assumptions. A SLUG is human-readable and should not exceed three words and can be validated using regular expressions {slugRegex} . Only the best one is returned, the format must be JSON reference {"slug": "example-slug"}`,
|
||||
public: {
|
||||
previewMode: '',
|
||||
slugDefaultLength: '6',
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user