30 lines
645 B
TypeScript
30 lines
645 B
TypeScript
import { PugExtractor } from 'vite-plugin-windicss'
|
|
|
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
modules: ['nuxt-windicss'],
|
|
windicss: {
|
|
config: {
|
|
extract: {
|
|
extractors: [{
|
|
extractor: PugExtractor,
|
|
extensions: ['vue', 'pug']
|
|
}]
|
|
}
|
|
}
|
|
},
|
|
nitro: {
|
|
devProxy: {
|
|
'/api/img': {
|
|
target: 'http://106.15.192.42:3000/api/img'
|
|
},
|
|
'/api/drawing': {
|
|
target: 'http://106.15.192.42:3000/api/drawing'
|
|
},
|
|
'/api/text': {
|
|
target: 'http://139.224.128.24:7861/api/text_to_text'
|
|
},
|
|
},
|
|
}
|
|
})
|