Skip to content

docs: update define imports to use @/utils.ts alias#3886

Open
eaallen wants to merge 1 commit into
freshframework:mainfrom
eaallen:docs/update-define-import-paths
Open

docs: update define imports to use @/utils.ts alias#3886
eaallen wants to merge 1 commit into
freshframework:mainfrom
eaallen:docs/update-define-import-paths

Conversation

@eaallen

@eaallen eaallen commented Jun 29, 2026

Copy link
Copy Markdown

Summary

  • Update outdated documentation code examples that imported define from relative paths (../utils.ts and ../../utils.ts)
  • Replace them with the @/utils.ts alias to match current Fresh project conventions

Test plan

  • Verified no remaining ../utils.ts or ../../utils.ts imports in docs/latest/
  • Spot-check updated pages on usefresh.dev after merge (getting started, middleware, layouts, testing, advanced guides)

Made with Cursor

Replace outdated relative import paths (../utils.ts and ../../utils.ts)
with the @/utils.ts alias in documentation code examples.

Co-authored-by: Cursor <cursoragent@cursor.com>

@eaallen eaallen left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just noticed some of the examples use the old ../utils import method instead of @/utils. When I was first learning about fresh having to deal with the relative imports was frustrating. So I am updating the docs to make this smoother for other people.

I will also mention that some of the docs already used the @/utils, so this is just ensuring we use the same semantics throughout the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant