Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
feat: init sentry
liyasthomas49c0069c6875
diff --git a/packages/hoppscotch-app/nuxt.config.js b/packages/hoppscotch-app/nuxt.config.jsindex ba7f72588..8558cd4f0 100644--- a/packages/hoppscotch-app/nuxt.config.js+++ b/packages/hoppscotch-app/nuxt.config.js@@ -145,6 +145,8 @@ export default {"@nuxtjs/toast",// https://github.com/nuxt-community/i18n-module"@nuxtjs/i18n",+ // https://github.com/nuxt-community/sentry-module+ "@nuxtjs/sentry",// https://github.com/nuxt-community/robots-module"@nuxtjs/robots",// https://github.com/nuxt-community/sitemap-module@@ -197,6 +199,12 @@ export default {id: process.env.GTM_ID,},+ // Sentry module configuration+ sentry: {+ dsn: process.env.SENTRY_DSN,+ lazy: true,+ },+// Sitemap module configuration (https://github.com/nuxt-community/sitemap-module)sitemap: {hostname: process.env.BASE_URL,diff --git a/packages/hoppscotch-app/package.json b/packages/hoppscotch-app/package.jsonindex 16d8b2434..13cdcf1d6 100644--- a/packages/hoppscotch-app/package.json+++ b/packages/hoppscotch-app/package.json@@ -52,7 +52,7 @@"@codemirror/state": "^0.19.6","@codemirror/text": "^0.19.5","@codemirror/tooltip": "^0.19.10",- "@codemirror/view": "^0.19.29",+ "@codemirror/view": "^0.19.32","@hoppscotch/codemirror-lang-graphql": "workspace:^0.1.0","@hoppscotch/data": "workspace:^0.1.0","@hoppscotch/js-sandbox": "workspace:^1.0.0",@@ -61,6 +61,7 @@"@nuxtjs/gtm": "^2.4.0","@nuxtjs/i18n": "^7.2.0","@nuxtjs/robots": "^2.5.0",+ "@nuxtjs/sentry": "^5.1.6","@nuxtjs/sitemap": "^2.4.0","@nuxtjs/toast": "^3.3.1","@urql/core": "^2.3.6",@@ -69,7 +70,7 @@"acorn": "^8.6.0","acorn-walk": "^8.2.0","axios": "^0.24.0",- "core-js": "^3.19.2",+ "core-js": "^3.20.0","esprima": "^4.0.1","firebase": "^9.6.1","fp-ts": "^2.11.5",@@ -104,8 +105,8 @@"yargs-parser": "^21.0.0"},"devDependencies": {- "@babel/core": "^7.16.0",- "@babel/preset-env": "^7.16.4",+ "@babel/core": "^7.16.5",+ "@babel/preset-env": "^7.16.5","@graphql-codegen/add": "^3.1.0","@graphql-codegen/cli": "2.3.0","@graphql-codegen/typed-document-node": "^2.2.1",@@ -137,13 +138,13 @@"@vue/runtime-dom": "^3.2.26","@vue/test-utils": "^1.3.0","babel-core": "^7.0.0-bridge.0",- "babel-jest": "^27.4.4",+ "babel-jest": "^27.4.5","eslint": "^8.4.0","eslint-config-prettier": "^8.3.0","eslint-plugin-nuxt": "^3.1.0","eslint-plugin-prettier": "^4.0.0","eslint-plugin-vue": "^8.1.1",- "jest": "^27.4.4",+ "jest": "^27.4.5","jest-serializer-vue": "^2.0.2","npm-run-all": "^4.1.5","nuxt-windicss": "^2.0.12",@@ -156,7 +157,7 @@"stylelint-config-standard": "^24.0.0","stylelint-config-standard-scss": "^3.0.0","ts-jest": "^27.1.0",- "typescript": "^4.5.3",+ "typescript": "^4.5.4","vue-jest": "^3.0.7","worker-loader": "^3.0.8"}diff --git a/packages/hoppscotch-app/tsconfig.json b/packages/hoppscotch-app/tsconfig.jsonindex ed0662f07..b1fa977b6 100644--- a/packages/hoppscotch-app/tsconfig.json+++ b/packages/hoppscotch-app/tsconfig.json@@ -15,7 +15,13 @@"~/*": ["./*"],"@/*": ["./*"]},- "types": ["@types/node", "@nuxt/types", "@nuxtjs/i18n", "@nuxtjs/toast"]+ "types": [+ "@types/node",+ "@nuxt/types",+ "@nuxtjs/i18n",+ "@nuxtjs/toast",+ "@nuxtjs/sentry"+ ]},"exclude": ["node_modules", ".nuxt", "dist"],"vueCompilerOptions": {