Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #114

Merged
merged 13 commits into from
Mar 3, 2025
Merged

Dev #114

2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ echo "${GREEN}✅ All checks passed!${NC}"
# Only run lint-staged if it exists in package.json and npx is available
if command -v npx >/dev/null 2>&1 && grep -q "\"lint-staged\"" package.json 2>/dev/null; then
npx --no -- lint-staged
fi
fi
4 changes: 1 addition & 3 deletions frontend/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
NEXT_PUBLIC_PAYMENT_API_BASE_URL=/api/v1
NEXT_PUBLIC_TRANSAK_API_KEY=1234567890
NEXT_PUBLIC_ENVIRONMENT=staging
PUBLIC_PAYMENT_API_BASE_URL=/..
2 changes: 0 additions & 2 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

.env
9 changes: 5 additions & 4 deletions frontend/next.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import type { NextConfig } from "next";
import type { NextConfig } from 'next';

const nextConfig: NextConfig = {
output: 'export',
distDir: 'dist',
basePath: '/admin',
env: {
NEXT_PUBLIC_PAYMENT_API_BASE_URL: process.env.NEXT_PUBLIC_PAYMENT_API_BASE_URL || '/api/v1'
NEXT_PUBLIC_PAYMENT_API_BASE_URL:
process.env.NEXT_PUBLIC_PAYMENT_API_BASE_URL || 'http://localhost:3001',
},
images: {
unoptimized: true
}
unoptimized: true,
},
};

export default nextConfig;
12 changes: 0 additions & 12 deletions frontend/openapi-ts-error-1740017978625.log

This file was deleted.

Loading