Ai
1 Star 4 Fork 5

labs/FastSend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nuxt.config.ts 2.75 KB
一键复制 编辑 原始数据 按行查看 历史
// https://nuxt.com/docs/api/configuration/nuxt-config
import path from 'path'
export default defineNuxtConfig({
devtools: { enabled: true },
css: ['~/assets/main.css'],
modules: [
'@nuxtjs/seo',
'@nuxtjs/i18n',
'@vite-pwa/nuxt',
'@primevue/nuxt-module',
'@nuxtjs/color-mode',
'@nuxtjs/tailwindcss',
'nuxt-icon'
],
app: {
head: {
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0',
link: [{ rel: 'icon', href: '/favicon.webp' }]
}
},
site: {
// url: 'http://localhost:3000',
url: 'https://fastsend.ing',
name: 'FastSend',
// 一个基于WebRTC实现点对点快速目录同步和文件传输的工具站
description:
'A tool station based on WebRTC to achieve point-to-point fast directory synchronization and file transfer'
// defaultLocale: 'zh'
},
i18n: {
vueI18n: './i18n.config.ts',
baseUrl: 'https://fastsend.ing',
locales: [
{ code: 'en', iso: 'en-US' },
{ code: 'zh', iso: 'zh-CN' }
],
defaultLocale: 'en',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected',
redirectOn: 'root'
}
},
ogImage: {
enabled: false
},
primevue: {
options: {
unstyled: true,
ripple: true
},
importPT: { from: path.resolve(__dirname, './presets/aura/') } // Import and apply preset
// For Windows
// importPT: { as: 'Aura', from: '~/presets/aura' }
},
colorMode: {
preference: 'system', // default value of $colorMode.preference
fallback: 'light', // fallback value if not system preference found
hid: 'nuxt-color-mode-script',
globalName: '__NUXT_COLOR_MODE__',
componentName: 'ColorScheme',
classPrefix: '',
classSuffix: '',
storageKey: 'nuxt-color-mode'
},
pwa: {
strategies: 'injectManifest',
srcDir: 'public',
filename: 'sw.js',
registerType: 'autoUpdate',
// workbox: {
// runtimeCaching: [
// {
// urlPattern: /.*/,
// handler: 'StaleWhileRevalidate',
// options: {
// cacheName: 'main'
// }
// }
// ]
// },
manifest: {
name: 'FastSend',
short_name: 'FastSend',
theme_color: '#ffffff',
icons: [
{
src: '/favicon.webp',
sizes: '512x512',
type: 'image/webp',
purpose: 'any'
}
],
screenshots: [
{ src: '/ogImg.webp', sizes: '1280x720', type: 'image/webp', form_factor: 'wide' },
{ src: '/mobile.webp', sizes: '990x1370', type: 'image/webp', form_factor: 'narrow' }
]
}
},
nitro: {
experimental: {
websocket: true
}
},
compatibilityDate: '2024-08-09'
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/labs/FastSend.git
git@gitee.com:labs/FastSend.git
labs
FastSend
FastSend
main

搜索帮助