The frontend component of PuffPastry, meant to interface with the backend, which in turn interfaces with the smart contract.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

vite.config.ts 317 B

2 个月前
2 个月前
123456789101112131415
  1. import { defineConfig } from 'vite'
  2. import vue from '@vitejs/plugin-vue'
  3. // https://vitejs.dev/config/
  4. export default defineConfig({
  5. plugins: [vue()],
  6. server: {
  7. proxy: {
  8. '/api': {
  9. target: 'http://127.0.0.1:8080',
  10. rewrite: (url: string) => url.replace(/\/api/, ''),
  11. }
  12. }
  13. }
  14. })