* feat: backean kafetegia sortzen du * helbidea kentzen du * feat: kafetegirako desktop bista sortzen du * Nabigazioa sortzen du * chore: tsconfig fitxategia sortzen du * refactor: extract component * feat: kolorea ematen dio atal bakoitzari * chore: koloreak sortzen ditu * fix: nabigazioa konpontzen du * feat: mugikor menua sortzen du * fix: tipografia aldatzen du * feat: kafetegiko menua margotzen du * feat: produktu zerrenda erakusten du
104 lines
2.1 KiB
JavaScript
104 lines
2.1 KiB
JavaScript
require('dotenv').config({
|
|
path: `.env.${process.env.NODE_ENV}`,
|
|
});
|
|
|
|
const qs = require('qs');
|
|
const query = qs.stringify(
|
|
{
|
|
populate: {
|
|
edariBeroak: {
|
|
populate: ['alergenoak'],
|
|
},
|
|
infusioEkologikoak: {
|
|
populate: ['alergenoak'],
|
|
},
|
|
edariHotzak: {
|
|
populate: ['alergenoak'],
|
|
},
|
|
pikatzekoak: {
|
|
populate: ['alergenoak'],
|
|
},
|
|
gozoak: {
|
|
populate: ['alergenoak'],
|
|
},
|
|
anizkoJogurta: {
|
|
populate: ['alergenoak'],
|
|
},
|
|
tostadak: {
|
|
populate: ['alergenoak'],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
encodeValuesOnly: true,
|
|
},
|
|
);
|
|
|
|
module.exports = {
|
|
plugins: [
|
|
'gatsby-plugin-react-helmet',
|
|
{
|
|
resolve: `gatsby-source-filesystem`,
|
|
options: {
|
|
name: `images`,
|
|
path: `${__dirname}/src/images`,
|
|
},
|
|
},
|
|
{
|
|
resolve: 'gatsby-source-custom-api',
|
|
options: {
|
|
rootKey: 'kafetegia',
|
|
url: `http://localhost:1337/api/kafetegia?${query}`,
|
|
},
|
|
},
|
|
{
|
|
resolve: 'gatsby-source-strapi',
|
|
options: {
|
|
apiURL: process.env.API_URL || 'http://localhost:1337/api',
|
|
singleTypes: [
|
|
'hasiera',
|
|
{
|
|
name: 'kafetegia',
|
|
queryParams: {
|
|
populate: '*',
|
|
},
|
|
},
|
|
],
|
|
queryLimit: 1000,
|
|
},
|
|
},
|
|
'gatsby-transformer-sharp',
|
|
'gatsby-plugin-sharp',
|
|
'gatsby-plugin-styled-components',
|
|
{
|
|
resolve: `gatsby-plugin-manifest`,
|
|
options: {
|
|
name: 'Laba webgunea',
|
|
short_name: 'Laba',
|
|
start_url: '/',
|
|
background_color: `#fd3447`,
|
|
theme_color: `#fd3447`,
|
|
display: `standalone`,
|
|
icon: `src/images/logo.png`,
|
|
},
|
|
},
|
|
'gatsby-plugin-offline',
|
|
// 'gatsby-plugin-sitemap',
|
|
{
|
|
resolve: 'gatsby-plugin-react-svg',
|
|
options: {
|
|
rule: {
|
|
include: /assets/,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
resolve: `gatsby-plugin-google-fonts`,
|
|
options: {
|
|
fonts: [`almarai\:600`, `almarai\:300`],
|
|
display: 'swap',
|
|
},
|
|
},
|
|
],
|
|
};
|