You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library was tested on a few pages and on one page on one method is placed a bunch of the word "export" before each line like so:
// Fetch attractions
export export /**
export * Performs a POST request to fetch attractions and Google Places recommendations based on the destination data provided in the request body.
export * If the request method is not POST, it sets the Allow header to POST and returns a 405 status code.
export * @param {Object} req - The request object containing the destination data
export * @param {Object} res - The response object to send back the attractions and recommendations
export * @returns {Object} - An object containing shuffled array of attractions and Google Places recommendations
export */
export async function POST(req, res) {
export if (req.method === "POST") {
export const { destination } = await req.json();
export const viatorActivities = await fetchAttractions(destination.id);
export const googlePlaces = await getGooglePlacesRecommendations(`${destination.name} ${destination.timeZone}`);
export
export return Response.json({ data: _.shuffle([...viatorActivities, ...googlePlaces]) });
export } else {
export res.setHeader("Allow", ["POST"]);
export res.status(405).end(`Method ${req.method} Not Allowed`);
export }
export }
This library was tested on a few pages and on one page on one method is placed a bunch of the word "export" before each line like so:
This is how it looked prior:
`
`
The text was updated successfully, but these errors were encountered: