12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- export default {
- /*
- ** Nuxt rendering mode
- ** See https://nuxtjs.org/api/configuration-mode
- */
- mode: "universal",
- /*
- ** Headers of the page
- ** See https://nuxtjs.org/api/configuration-head
- */
- head: {
- titleTemplate: "%s - SeMiD",
- meta: [
- { charset: "utf-8" },
- { name: "viewport", content: "width=device-width, initial-scale=1" },
- {
- hid: "description",
- name: "description",
- content: "We don't know what SeMiD is"
- }
- ],
- link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }]
- },
- /*
- ** Global CSS
- */
- css: ["@fortawesome/fontawesome-svg-core/styles.css"],
- /*
- ** Plugins to load before mounting the App
- ** https://nuxtjs.org/guide/plugins
- */
- plugins: [
- { src: "~/plugins/axios.ts", mode: "client" },
- "~/plugins/graphql.ts",
- "~/plugins/fontawesome.ts"
- ],
- /*
- ** Nuxt.js dev-modules
- */
- buildModules: ["@nuxt/typescript-build"],
- /*
- ** Nuxt.js modules
- */
- modules: ["@nuxtjs/axios"],
- /*
- ** Build configuration
- ** See https://nuxtjs.org/api/configuration-build/
- */
- build: {
- loaders: {
- file: { esModule: false }
- },
- extend(config) {
- config.module.rules.push({
- test: /\.(ogg|mp3|wav|mpe?g)$/i,
- loader: "file-loader",
- options: {
- name: "[path][name].[ext]"
- }
- });
- }
- },
- serverMiddleware: [
- // Will register redirect-ssl npm package
- // Will register file from project api directory to handle /api/* requires
- { path: "/api", handler: "~/api/index.js" }
- ]
- };
|