Skip to content

Commit 3ef5ba9

Browse files
committed
build: v3.2.7
1 parent 67c9335 commit 3ef5ba9

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

components/search-form/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import { useState, useEffect, useRef, KeyboardEvent } from "react";
44
import { useRouter } from "next/navigation";
5+
56
import { ENDPOINTS } from "@/constants";
67

78
interface SearchSuggestion {
@@ -12,6 +13,7 @@ interface SearchSuggestion {
1213

1314
const buildSearchUrl = (query: string) => {
1415
const url = new URL("/api/osint/search", ENDPOINTS.API);
16+
1517
url.searchParams.set("searchQuery", query);
1618

1719
return url.toString();

config/api-origin.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
const DEFAULT_API_ORIGIN = "https://cmnw.me";
2-
31
const normalizeOrigin = (origin) => (origin ?? "").replace(/\/+$/, "");
42

5-
const API_ORIGIN = normalizeOrigin(
6-
process.env.NEXT_PUBLIC_API_URL || DEFAULT_API_ORIGIN
7-
);
3+
const API_ORIGIN = normalizeOrigin(process.env.NEXT_PUBLIC_API_URL);
84

95
module.exports = {
106
API_ORIGIN,
11-
DEFAULT_API_ORIGIN,
127
normalizeOrigin,
138
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cmnw-next",
3-
"version": "3.2.6",
3+
"version": "3.2.7",
44
"private": true,
55
"scripts": {
66
"dev": "next dev --turbopack",

0 commit comments

Comments
 (0)