Description
All the utility functions in the project currently use hardcoded API endpoints. For example:
const res = await fetch("http://localhost:3000/api/Tickets", {
cache: "no-store",
});
Hardcoding URLs can lead to deployment issues when switching between different environments, such as production, staging, or testing. To ensure flexibility and maintainability, these values should be moved to environment variables.
Acceptance Criteria
Description
All the utility functions in the project currently use hardcoded API endpoints. For example:
Hardcoding URLs can lead to deployment issues when switching between different environments, such as production, staging, or testing. To ensure flexibility and maintainability, these values should be moved to environment variables.
Acceptance Criteria
process.env.NEXT_PUBLIC_API_URLvariable.