Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
import "./src/styles/global.css"
import React from "react";
import "./src/styles/global.css";
import { Analytics } from "@vercel/analytics/react";

export const wrapRootElement = ({ element }) => (
<>
{element}
<Analytics />
</>
);
15 changes: 14 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
author: "IEEE SB GEC Thrissur",
siteUrl: "https://ieee.gectcr.ac.in",
},
pathPrefix: "/web-core",
//pathPrefix: "/web-core",
plugins: [
{
resolve: `gatsby-plugin-google-gtag`,
Expand Down Expand Up @@ -39,9 +39,22 @@ module.exports = {
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-sharp`,
options: {
defaults: {
formats: ["auto", "png"], // avoid avif and webp for now
placeholder: "blurred",
},
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
defaults: {
formats: ["auto", "png"], // Remove webp to test
placeholder: "blurred",
},
name: `IEEE Website GEC Thrissur`,
short_name: `IEEE GECT`,
start_url: `/`,
Expand Down
10 changes: 10 additions & 0 deletions gatsby-ssr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// gatsby-ssr.js
import React from "react";
import { Analytics } from "@vercel/analytics/react";

export const wrapRootElement = ({ element }) => (
<>
{element}
<Analytics />
</>
);
Loading