Skip to content
Draft
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Next.js Environment Variables
NEXT_PUBLIC_HOST_BACKEND=http://localhost:3000/api
NEXT_PUBLIC_HOST_WEBSOCKET=ws://localhost:3000

# Paradym Configuration
PARADYM_API_KEY=your_paradym_api_key_here
PARADYM_PROJECT_ID=your_paradym_project_id_here
PARADYM_BASE_URL=https://api.paradym.id

# Development settings
NODE_ENV=development
57 changes: 5 additions & 52 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'next/core-web-vitals',
'eslint:recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
'plugin:cypress/recommended',
'@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
plugins: ['cypress'],
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.eslint.json', './client/tsconfig.json', './server/tsconfig.json', './cypress/tsconfig.json'],
project: ['./tsconfig.json'],
},
settings: {
'import/extensions': ['.js', '.ts'],
'import/extensions': ['.js', '.ts', '.tsx'],
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
Expand All @@ -38,49 +35,5 @@ module.exports = {
'newlines-between': 'always',
},
],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: false,
},
],
},
overrides: [
{
files: ['jest.config.ts', '.eslintrc.js'],
env: {
node: true,
},
},
{
files: ['*.test.ts', '**/__tests__/**', '**/tests/**', 'jest.*.ts', 'samples/**', 'cypress/**'],
env: {
jest: true,
node: false,
},
rules: {
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
},
],
},
},
{
files: ['cypress/**/*.cy.ts'],
env: {
jest: true,
node: true,
},
rules: {
'cypress/no-assigning-return-values': 'error',
'cypress/no-unnecessary-waiting': 'error',
'cypress/assertion-before-screenshot': 'warn',
'cypress/no-force': 'warn',
'cypress/no-async-tests': 'error',
'cypress/no-pause': 'error',
},
},
],
}
5 changes: 5 additions & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
19 changes: 19 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
// Disable strict mode for compatibility with existing React components
reactStrictMode: false,
// Custom webpack config for Aries Framework JavaScript
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
net: false,
tls: false,
}
}
return config
},
}

module.exports = nextConfig
Loading