Use with Astro #866
Answered
by
vivgui
basarozcan
asked this question in
Q&A
Use with Astro
#866
-
Is there any integration document or path to follow when integrate Ray for Astro? |
Beta Was this translation helpful? Give feedback.
Answered by
vivgui
Jun 20, 2024
Replies: 2 comments
-
I would like to know this as well! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I figured it out! You need to use the node-ray package and use the ---
import { ray } from 'node-ray';
let logos = (await getLogos()) || [];
ray().toJson(logos);
--- |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
basarozcan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figured it out! You need to use the node-ray package and use the
toJson
method, Here's an example of running it from an Astro file frontmatter:This returns the logos object all expanded: