text: require("ts-node").register({ files: true });
  
  // const activeEnv = process.env.GATSBY_ACTIVE_ENV || process.env.NODE_ENV || "development";
  // // eslint-disable-next-line no-console
  // console.log(`Using environment config: '${activeEnv}'`);
  
  // require("dotenv").config({
  // 	path: `.env`,
  // });
  
  require("dotenv").config({
  	path: `.env${process.env.ENV !== undefined ? `.${process.env.ENV}` : ""}`,
  });
  
  module.exports = {
  	siteMetadata: {
  		title: `AQSZTID | Medencetisztítás`,
  		description: `Medence- és egyéb tisztítószerekkel foglalkozó vállalkozás`,
  		author: `Aqsztid Bt`,
  	},
  	pathPrefix: `/tersus`,
  	plugins: [
  		`gatsby-transformer-json`,
  		`gatsby-plugin-react-helmet`,
  		{
  			resolve: `gatsby-source-filesystem`,
  			options: {
  				name: `images`,
  				path: `${__dirname}/assets/images`,
  			},
  		},
  		{
  			resolve: `gatsby-source-filesystem`,
  			options: {
  				name: `data`,
  				path: `${__dirname}/data`,
  			},
  		},
  		{
  			resolve: `gatsby-source-filesystem`,
  			options: {
  				name: `cms`,
  				path: `${__dirname}/cms`,
  				ignore: ["**/assets/**"],
  			},
  		},
  		{
  			resolve: `gatsby-source-filesystem`,
  			options: {
  				name: `cmsimages`,
  				path: `${__dirname}/cms/assets`,
  			},
  		},
  		`gatsby-plugin-catch-links`,
  		{
  			resolve: `gatsby-transformer-remark`,
  			options: {
  				plugins: [
  					{
  						resolve: `gatsby-remark-images`,
  						// options: {
  						// 	maxWidth: 800,
  						// },
  					},
  					`remark-image-attributes`,
  					`gatsby-remark-image-attributes`,
  				],
  			},
  		},
  		`gatsby-transformer-sharp`,
  		`gatsby-plugin-sharp`,
  		{
  			resolve: `gatsby-plugin-manifest`,
  			options: {
  				name: `gatsby-starter-default`,
  				short_name: `starter`,
  				start_url: `/`,
  				background_color: `#663399`,
  				theme_color: `#663399`,
  				display: `minimal-ui`,
  				icon: `assets/images/tersus-icon.png`, // This path is relative to the root of the site.
  			},
  		},
  		`gatsby-plugin-typescript`,
  		{
  			resolve: `gatsby-plugin-sass`,
  			options: {
  				postCssPlugins: [require("tailwindcss")],
  			},
  		},
  		{
  			resolve: `gatsby-plugin-purgecss`,
  			options: {
  				printRejected: true,
  				develop: false, // Enable while using `gatsby develop`
  				tailwind: true, // Enable tailwindcss support
  				whitelist: ["duration-1000"],
  				whitelistPatterns: [/^notification/],
  			},
  		},
  		{
  			resolve: "gatsby-plugin-netlify-cms",
  			options: {
  				modulePath: `${__dirname}/src/cms.js`,
  			},
  		},
  		{
  			resolve: `gatsby-plugin-create-client-paths`,
  			options: { prefixes: [`/ops/*`] },
  		},
  		{
  			resolve: "gatsby-plugin-google-tagmanager",
  			options: {
  				id: process.env.GTM_ID,
  
  				// Include GTM in development.
  				//
  				// Defaults to false meaning GTM will only be loaded in production.
  				includeInDevelopment: process.env.GTM_DEV_MODE && process.env.GTM_DEV_MODE === "true",
  
  				// datalayer to be set before GTM is loaded
  				// should be an object or a function that is executed in the browser
  				//
  				// eslint-disable-next-line object-shorthand
  				defaultDataLayer: function () {
  					return {
  						pageType: window.pageType,
  					};
  				},
  
  				// Specify optional GTM environment details.
  				// gtmAuth: "YOUR_GOOGLE_TAGMANAGER_ENVIRONMENT_AUTH_STRING",
  				// gtmPreview: "YOUR_GOOGLE_TAGMANAGER_ENVIRONMENT_PREVIEW_NAME",
  				// dataLayerName: "YOUR_DATA_LAYER_NAME",
  
  				// Name of the event that is triggered
  				// on every Gatsby route change.
  				//
  				// Defaults to gatsby-route-change
  				// routeChangeEventName: "YOUR_ROUTE_CHANGE_EVENT_NAME",
  			},
  		},
  		// {
  		// 	resolve: `gatsby-plugin-anchor-links`,
  		// 	options: {
  		// 		offset: -100,
  		// 	},
  		// },
  		// this (optional) plugin enables Progressive Web App + Offline functionality
  		// To learn more, visit: https://gatsby.dev/offline
  		// `gatsby-plugin-offline`,
  	],
  };
  