-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
my nuxt config is: // require("dotenv").config(); // const isProd = process.env.NODE_ENV === 'production' export default { // Global page headers: https://go.nuxtjs.dev/config-head ssr: true, target: 'static', generate: {fallback: true}, head: { title: 'Aura | Building the NFT infrastructure', htmlAttrs: { lang: 'en', }, meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { hid: 'description', name: 'description', content: 'Building the NFT infrastructure to enable seamless commerce to buy/sell/trade NFTs' }, { name: 'format-detection', content: 'telephone=no' }, ], link: [ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Inter:wght@300;400;500;600;700&display=swap"', onload:"this.rel='stylesheet'"} ], }, // Global CSS: https://go.nuxtjs.dev/config-css css: [], loading: false, parallel: true, // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins plugins: [ { src: '~/plugins/aos.js', ssr: false }, { src: '~/plugins/mixpanel.js', ssr: false }, { src: '~/plugins/simple-shimmer.js', ssr: false }, { src: '~/plugins/vue-apexchart.js', ssr: false }, { src: '~/plugins/myFormatter.js', ssr: true }, { src: '~/plugins/axios', ssr: true }, { src: '~/plugins/font-awesome.js', ssr: true }, ], // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules buildModules: [ // https://go.nuxtjs.dev/eslint '@nuxtjs/eslint-module', // https://go.nuxtjs.dev/tailwindcss '@nuxtjs/tailwindcss', [ "@nuxtjs/google-analytics", { id: process.env.VUE_APP_GA_ID } ], ['@nuxtjs/fontawesome', { component: 'fa', imports: [ { set: '@fortawesome/free-solid-svg-icons', icons: ['faSpinner', 'faCaretUp', 'faCaretDown',] }, ] }], ], googleAnalytics: { id: process.env.VUE_APP_GA_ID // or use ({}).GOOGLE_ANALYTICS_ID }, publicRuntimeConfig: { googleAnalytics: { id: process.env.VUE_APP_GA_ID // or use ({}).GOOGLE_ANALYTICS_ID }, }, // Modules: https://go.nuxtjs.dev/config-modules modules: [ // https://go.nuxtjs.dev/axios "@nuxtjs/dotenv", '@nuxtjs/axios', "vue-toastification/nuxt", // You can also pass plugin options ["vue-toastification/nuxt", { timeout: 5000, draggable: true }], [ 'nuxt-compress', { gzip: { threshold: 8192, }, brotli: { threshold: 8192, }, }, ], ], // Axios module configuration: https://go.nuxtjs.dev/config-axios axios: { // Workaround to avoid enforcing hard-coded localhost:3000: https://github.com/nuxt-community/axios-module/issues/308 baseURL: process.env.VUE_APP_API_BASE_URL, }, cache: { useHostPrefix: false, pages: [/^\/$/], store: { type: "memory", max: 100, ttl: 60 } }, workbox: { runtimeCaching: [ { urlPattern: 'https://fonts.googleapis.com/.\*', handler: 'cacheFirst', method: 'GET', strategyOptions: { cacheableResponse: { statuses: [0, 200] } } } ] }, // Build Configuration: https://go.nuxtjs.dev/config-build build: { html: { minify: { collapseBooleanAttributes: true, decodeEntities: true, minifyCSS: true, minifyJS: true, processConditionalComments: true, removeEmptyAttributes: true, removeRedundantAttributes: true, trimCustomFragments: true, useShortDoctype: true } }, splitChunks:{ pages: true, commons: true }, optimization: { runtimeChunk: { name: (entrypoint) => `runtime~${entrypoint.name}`, }, minimize: true, splitChunks: { chunks: "all", name:true, cacheGroups: { styles: { name: 'styles', test: /\.(css|vue)$/, chunks: 'all', enforce: true } } } }, extend(config, { isDev, isClient, loaders: { vue } }) { config.resolve.symlinks = false; config.module.rules.push({ test: /\.(ttf|eot|svg|woff(2)?)(\?[a-z0-9=&.]+)?$/, loader: 'file-loader' }) if (isDev) { config.mode = 'development' } if(isDev) { config.devtool = isClient ? "eval-source-map" : "inline-source-map"; } } }, }
Related posts
-
Create $fetch API Factory Pattern in Nuxt3
-
I'm Trying to Inject An NPM package As A Plugin on A Next.js App to Avoid A "Native Node.js APIs are not supported in the Edge Runtime. Found `child_process` imported." Error
-
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
-
Nuxt google tag manager
-
Using Nuxt Content: Working with Remote Markdown Files