Skip to content
Merged
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,6 @@ dist
package-lock.json

.claude/settings.local.json

# Playwright
playwright-report/
120 changes: 54 additions & 66 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,77 +1,65 @@
/* eslint-disable @typescript-eslint/no-require-imports */
const dotenv = require('dotenv');
const path = require('path');
const { existsSync } = require('fs');
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});

module.exports = async () => {
module.exports = withBundleAnalyzer({
// Move env loading to the top level, outside the config
...loadEnv(),

i18n: {
locales: ['en', 'ru', 'hy'],
defaultLocale: 'en',
},
assetPrefix: process.env.NODE_ENV === 'development' ? '' : '/keepsimple_next',
async rewrites() {
return [
{ source: '/assets/:path*', destination: '/keepsimple_/assets/:path*' },
{ source: '/fonts/:path*', destination: '/keepsimple_/fonts/:path*' },
{ source: '/audio/:path*', destination: '/keepsimple_/audio/:path*' },
{ source: '/static/:path*', destination: '/keepsimple_/static/:path*' },
{ source: '/robots.txt', destination: '/keepsimple_/robots.txt' },
];
},
env: {
NEXTAUTH_URL: process.env.NEXTAUTH_URL,
},
compiler: {
removeConsole:
process.env.NODE_ENV === 'prod' ? { exclude: ['error'] } : false,
},
eslint: {
ignoreDuringBuilds: true,
},
images: {
domains: [
'lh3.googleusercontent.com',
'cdn.discordapp.com',
'strapi.keepsimple.io',
'staging-strapi.keepsimple.io',
],
deviceSizes: [480, 640, 750, 828, 1080, 1200, 1920, 2048, 3840],
},
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack'],
});
return config;
},
productionBrowserSourceMaps: true,
});

function loadEnv() {
const envFile = `.env.${process.env.APP_ENV || 'local'}`;
const envPath = path.join(__dirname, envFile);
const isLocal = process.env.NODE_ENV === 'development';

if (existsSync(envPath)) {
dotenv.config({ path: envPath });
} else {
console.error(`Env file not found: ${envPath}`);
}

return {
i18n: {
locales: ['en', 'ru', 'hy'],
defaultLocale: 'en',
},
assetPrefix: isLocal ? '' : '/keepsimple_next',
async rewrites() {
return [
{
source: '/assets/:path*',
destination: '/keepsimple_/assets/:path*',
},
{
source: '/fonts/:path*',
destination: '/keepsimple_/fonts/:path*',
},
{
source: '/audio/:path*',
destination: '/keepsimple_/audio/:path*',
},
{
source: '/static/:path*',
destination: '/keepsimple_/static/:path*',
},
{
source: '/robots.txt',
destination: '/keepsimple_/robots.txt',
},
];
},
env: {
NEXTAUTH_URL: process.env.NEXTAUTH_URL,
},
compiler: {
removeConsole:
process.env.NODE_ENV === 'prod' ? { exclude: ['error'] } : false,
},
eslint: {
ignoreDuringBuilds: true, // useful in CI/CD
},
images: {
domains: [
'lh3.googleusercontent.com',
'cdn.discordapp.com',
'strapi.keepsimple.io',
'staging-strapi.keepsimple.io',
],
},
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack'],
});

return config;
},

productionBrowserSourceMaps: true,
};
};
return {};
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"prepare": "husky install"
},
"dependencies": {
"@next/bundle-analyzer": "^16.2.3",
"@svgr/webpack": "^8.1.0",
"classnames": "2.3.1",
"cookie": "0.6.0",
Expand Down
Binary file modified public/keepsimple_/assets/articles-blog/hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/keepsimple_/assets/contributors/active-hover-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/keepsimple_/assets/contributors/arrow-next-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/keepsimple_/assets/contributors/arrow-next.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/keepsimple_/assets/contributors/arrow-prev-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/keepsimple_/assets/contributors/arrow-prev.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/keepsimple_/assets/contributors/contributor-bg-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/keepsimple_/assets/contributors/contributor-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/keepsimple_/assets/contributors/cover-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/keepsimple_/assets/contributors/link-icon-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/keepsimple_/assets/contributors/link-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 1 addition & 25 deletions public/keepsimple_/assets/contributors/social-link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 1 addition & 16 deletions public/keepsimple_/assets/contributors/specialization.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions public/keepsimple_/assets/contributors/underline-landing.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions public/keepsimple_/assets/contributors/underline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/keepsimple_/assets/home-page/bob-gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/keepsimple_/assets/home-page/bob-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions public/keepsimple_/assets/icons/email-outline-dark.svg

This file was deleted.

3 changes: 0 additions & 3 deletions public/keepsimple_/assets/icons/email-outline-light.svg
Diff not rendered.
Loading
Loading