Skip to content

Commit

Permalink
robots.txt added
Browse files Browse the repository at this point in the history
  • Loading branch information
puzansakya committed Feb 22, 2019
1 parent 8f340b7 commit ba64836
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"assets": [
"src/favicon.ico",
"src/assets",
"src/manifest.webmanifest"
"src/manifest.webmanifest",
"src/robots.txt"
],
"styles": [
"src/styles.scss"
Expand Down
2 changes: 1 addition & 1 deletion server/.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mode=dev
mode=prod
2 changes: 1 addition & 1 deletion src/app/landing/landing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { ArticleStoreModule } from '../root-store/article-store/article-store.mo
export const ROUTES: Routes = [
{
path: '',
canActivate: [fromGuards.ArticleCollectionGuard],
// canActivate: [fromGuards.ArticleCollectionGuard],
component: fromContainers.LandingComponent,
}
];
Expand Down
4 changes: 2 additions & 2 deletions src/app/root-store/article-store/effects/article.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class ArticleEffects {

@Effect()
loadArticles$ = ({ debounce = 3000, scheduler = asyncScheduler } = {}): Observable<Action> => this.actions$.pipe(
// debounceTime(debounce, scheduler),
debounceTime(debounce, scheduler),
ofType(articleActions.LOAD_ARTICLES),
map((action: articleActions.LoadArticles) => action.payload),
switchMap((page: number) => {
Expand All @@ -44,7 +44,7 @@ export class ArticleEffects {
// debounceTime(debounce, scheduler),
ofType(articleActions.LOAD_ARTICLE),
map((action: articleActions.LoadArticle) => action.payload),
switchMap((slug: string) => {
switchMap((slug: string) => {
return this.articleService
.getArticle(slug)
.pipe(
Expand Down
2 changes: 2 additions & 0 deletions src/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Allow: /

0 comments on commit ba64836

Please sign in to comment.