<!-- Generated by SpecStory -->

# Resolve ZodString type assignment error (2025-06-26 22:04:09)

_**User**_

For the code present, we get this error:
```
Type 'ZodString' is not assignable to type '`PG_CONNECTION_STRING should not prefixed with ${string}.`'.
```
How can I resolve this? If you propose a fix, please make it concise.

---

_**Assistant**_

Looking at the error, it seems like the `@t3-oss/env-core` library is expecting environment variable names to not have a specific prefix pattern. The error suggests that `PG_CONNECTION_STRING` is being treated as having an invalid prefix.

Let me check the current environment configuration and fix this:

---



---

The issue persists with the same error pattern. Let me check if there's a specific configuration needed for the `@t3-oss/env-core` library:

---



---

The error persists. Let me fix both issues - update the reference to use the new variable name and try a different approach to the environment configuration:

---



---



---

The issue seems to be with the `@t3-oss/env-core` library configuration. Let me try a simpler approach by directly accessing the environment variable without the library:

---



---

